Conda/Mamba tips and tricks

From HPCWIKI
Jump to navigation Jump to search

Downgrading Conda Version

conda config --set allow_conda_downgrades true
conda install conda=a.b.c   # version you want to install

Conda commands

Commands Description Options Notes
conda config --add channels conda-forge Add conda channel Update channels section of ~/.condarc file
conda config --set channel_priority strict Set channel priority policy
conda config --show-sources Show config status
conda update --all --verbose Update all conda with printout
conda list --show-channel-urls Listup conda channels
conda search -f python search available python version Search can be extened with channels$ cat ~/.condarcchannels:- conda-forge- bioconda- defaults Conda only has support for Python 3.8+ on the osx-arm64[1]

To search alternative platforms, can use the --subdir, --platform argument to specify,

$conda search --subdir osx-64 python=3.6 or set the subdir configuration temporarily through the CONDA_SUBDIR environment variable:

CONDA_SUBDIR=osx-64 conda search python=3.6

Reference