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?
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.
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.
- Managing Python Environments from An Introduction to Earth and Environmental Data Science
- Setting Up and Customizing Python Environments Using Conda from Water Programming.