更新时间:2021-10-02 09:29:55
首先从一台计算机导出环境:
First export the environment from one machine:
$ conda env export -n myenv -f myenv.yml
然后从另一台计算机上的myenv.yml
创建一个新环境:
Then create a new environment from myenv.yml
on the other machine:
$ conda env create -f myenv.yml
要默认使用此环境,请将source activate myenv
添加到.bashrc
.
To use this environment as default, add source activate myenv
to your .bashrc
.