导出当前环境
conda env export > environment.yml
Notepad++ 查看文件内容
name: py3
channels:
- r
- defaults
dependencies:
- openssl=1.0.2l=0
- pip=9.0.1=py36_1
- python=3.6.2=0
- readline=6.2=2
- setuptools=27.2.0=py36_0
- sqlite=3.13.0=0
- tk=8.5.18=0
- wheel=0.29.0=py36_0
- xz=5.2.3=0
- zlib=1.2.11=0
prefix: /home/dpuser/miniconda3/envs/py3
从配置文件中创建新环境
conda env create -f environment.yml
再更新一下就OK了
conda env update -f environment.yaml
参考资料
http://pre.tir.tw/008/blog/output/conda_yml.html
https://fanfanzhisu.blog.csdn.net/article/details/108680254