Anaconda export Environment file

后端 未结 5 2053
后悔当初
后悔当初 2020-12-12 09:32

How can I make anaconda environment file which could be use on other computers?

I exported my anaconda python environment to YML using conda env export > en

5条回答
  •  死守一世寂寞
    2020-12-12 09:47

    1. First activate your conda environment (the one u want to export/backup)
    conda activate myEnv
    
    1. Export all packages to a file (myEnvBkp.txt)
    conda list --explicit > myEnvBkp.txt
    
    1. Restore/import the environment:
    conda create --name myEnvRestored --file myEnvBkp.txt
    

提交回复
热议问题