- Disable safety checks
conda config --set safety_checks disabled
-
Be more specific with versions
numpy
->numpy=1.15
or even betternumpy=1.15.4
-
Specify particular R implementations
r-essentials
->r-base=3.5 r-essentials
-
Eliminate possible mixed solutions:
conda config --set channel_priority strict
- Use mamba
See https://www.anaconda.com/blog/understanding-and-improving-condas-performance
Conda env using miniconda, see https://docs.conda.io/en/latest/miniconda.html
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
conda config --set auto_activate_base false
conda env export >> env.yml
For cross platform compatibility, use --from-history
flag to only include packages that were explicitly installed instead of including every package in environment.
conda env export --from-history >> env.yml
conda create --prefix ./envs