Conda/Mamba tips and tricks: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
conda install conda=a.b.c # version you want to install | conda install conda=a.b.c # version you want to install | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Speedup Conda == | |||
[https://www.anaconda.com/blog/understanding-and-improving-condas-performance This] page describes how to speed up conda operation | |||
some examples are, | |||
conda config --add channels bioconda | |||
conda config --set channel_priority strict | |||
conda config --set safety_checks disabled | |||
== Conda commands == | == Conda commands == | ||
Line 13: | Line 24: | ||
!Options | !Options | ||
!Notes | !Notes | ||
|- | |||
|conda update conda | |||
|update the conda package manager to the latest version | |||
| | |||
| | |||
|- | |||
|conda update anaconda | |||
|use conda to update Anaconda to the latest version | |||
| | |||
| | |||
|- | |||
|conda install anaconda=VERSION-NUMBER | |||
|use conda to install a specific version of Anaconda | |||
| | |||
| | |||
|- | |- | ||
|<code>conda config --add channels conda-forge</code> | |<code>conda config --add channels conda-forge</code> |
Revision as of 11:53, 24 May 2023
Downgrading Conda Version
conda config --set allow_conda_downgrades true
conda install conda=a.b.c # version you want to install
Speedup Conda
This page describes how to speed up conda operation
some examples are,
conda config --add channels bioconda
conda config --set channel_priority strict
conda config --set safety_checks disabled
Conda commands
Commands | Description | Options | Notes |
---|---|---|---|
conda update conda | update the conda package manager to the latest version | ||
conda update anaconda | use conda to update Anaconda to the latest version | ||
conda install anaconda=VERSION-NUMBER | use conda to install a specific version of Anaconda | ||
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 ~/.condarc channels: - conda-forge - bioconda - defaults
|
Conda only has support for Python 3.8+ on the osx-arm64[1]
To search alternative platforms, can use the
|