1. 不限操作系统
查看环境语句:
conda info --envs
更换环境,如环境为python36:
source activate python36
导出当前环境到python36.yaml文件当中
conda env export > python36.yaml
将python36.yaml文件拷贝到需要导入环境的服务器中,执行操作:
conda env create -f python36.yaml
如果是导出base环境,最好先复制一下再导出。
conda create -n new_name_base --clone base
然后再导出new_name_base环境即可。必要的话可以删除原始复制的环境:
conda remove -n new_name_base --all