This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
other:uvcdat:cdat_conda:miniconda3_install [2021/03/08 20:28] jypeter [What? Why?] Added conda cheat sheet |
other:uvcdat:cdat_conda:miniconda3_install [2021/03/09 10:37] jypeter [Fine-tuning conda] |
||
---|---|---|---|
Line 110: | Line 110: | ||
===== Fine-tuning conda ===== | ===== Fine-tuning conda ===== | ||
- | conda will probably work fine with the default settings, but we intend to create complex environments and it is better to use some specific settings | + | conda will probably work fine with the default settings for creating new environments with just one package (e.g. [[https://github.com/NOAA-PMEL/PyFerret/#anaconda-installation---linux-os-x-and-windows-10bash|just PyFerret]]). |
+ | We intend to **create complex environments** (combining lots of packages, with complex dependencies) and it is highly recommended to use the specific settings described in this section | ||
+ | |||
+ | Getting conda configuration information: | ||
* [[https://docs.conda.io/projects/conda/en/latest/commands/config.html|conda config]] documentation | * [[https://docs.conda.io/projects/conda/en/latest/commands/config.html|conda config]] documentation | ||
* Basic information: ''conda info'' | * Basic information: ''conda info'' | ||
Line 129: | Line 132: | ||
- defaults | - defaults | ||
channel_priority: strict</code> | channel_priority: strict</code> | ||
+ | |||
+ | ==== Using mamba instead of conda ==== | ||
+ | |||
+ | Even when using a proper ''.condarc'' in order to get packages coming only from //conda-forge//, ''conda install'' may fail to solve the dependencies after meditating during an enormous time, when we specify **complex environments**. Using CDAT as a base environment, and adding a lot of extra packages is a complex environment. | ||
+ | |||
+ | The only solution seems to replace ''conda'' with [[https://github.com/mamba-org/mamba|mamba]], a reimplementation of the conda package manager in C++ ([[https://wolfv.medium.com/making-conda-fast-again-4da4debfb3b7|Making conda fast again]]) | ||