Skip to content

conda

conda is a package manager used to manage dependencies for python projects (with some functionality for R and some other programs). You can export your environment for your Git repository.

We recommend that you use conda whenever possible to facilitate reproducibility and reduce package conflicts. If you need to use packages that are not available within conda, try to maintain a similar level of documentation: what packages did you use, and what versions?

Installation

conda installation procedures vary slightly depending on on your operating system. We recommend starting with Miniconda and adding packages as needed, as the full Anaconda installation might include a lot of less-necessary packages.

Usage

Here is a conda cheat sheet current as of conda 4.6.

You will generally want to add the conda-forge channel to your configuration. After loading an environment:

conda config --add channels conda-forge
conda config --set channel_priority strict

The conda documentation has more information on managing channels.

Learn More


Last update: February 16, 2022