How to backup Anaconda added packages?

前端 未结 1 863
囚心锁ツ
囚心锁ツ 2021-02-06 19:41

I have Anaconda for Python 2, It came packed with a lot of useful packages. During my work, I have added several packages to it using conda install command. Now I h

相关标签:
1条回答
  • 2021-02-06 20:04

    I think you can find the solution you are looking for here.

    • Open the Anaconda prompt
    • Activate the environment you are interested in
    • Type conda env export > environment.yml

    In the yml you will find all the dependencies and you can use it to create a new virtual environment as a copy of the current one.

    For example, on the new/rebooted machine, you can do:

    conda env create -f environment.yml
    
    0 讨论(0)
提交回复
热议问题