Conda Environment Versioning for Python Projects

I am using Anaconda Python distribution. I am wondering how best to manage versioned Conda environments for Python projects.

Each of my projects is a Mercurial repository. They use certain Python packages in certain versions. What is the best way to put these environments in the repository in such a way that as long as Anaconda is installed on the computer, everything will run smoothly without reconfiguring the environments?

+4
source share
1 answer

You can use conda list --exportto export the list of packages and conda install --fileto reinstall them. You can also check conda-env , which allows you to track the packages you need in the environment.yml file, which you can save to version control.

+4
source

All Articles