Conda/Mamba tips and tricks: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
!Commands | !Commands | ||
!Description | !Description | ||
!Options | |||
!Notes | !Notes | ||
|- | |- | ||
Line 16: | Line 17: | ||
|Add conda channel | |Add conda channel | ||
| | | | ||
|Update channels section of ~/.condarc file | |||
|- | |- | ||
|<code>conda config --set channel_priority strict</code> | |<code>conda config --set channel_priority strict</code> | ||
|Set channel priority policy | |Set channel priority policy | ||
| | |||
| | | | ||
|- | |- | ||
|<code>conda config --show-sources</code> | |<code>conda config --show-sources</code> | ||
|Show config | |Show config status | ||
| | |||
| | | | ||
|- | |- | ||
|<code>conda update --all --verbose</code> | |<code>conda update --all --verbose</code> | ||
|Update all conda with printout | |Update all conda with printout | ||
| | |||
| | | | ||
|- | |- | ||
Line 32: | Line 37: | ||
|Listup conda channels | |Listup conda channels | ||
| | | | ||
| | |||
|- | |||
|<code>conda search -f python</code> | |||
|search available python version | |||
|<code>Search can be extened with channels</code><code>$ cat ~/.condarc</code><code>channels:</code><code>- conda-forge</code><code>- bioconda</code><code>- defaults</code> | |||
|Conda only has [[support]] for Python 3.8+ on the '''osx-arm64'''<ref>https://stackoverflow.com/questions/73052910/no-python-3-6-available-in-conda-search-f-python</ref> | |||
To ''search'' alternative platforms, can use the <code>--subdir, --platform</code> argument to specify, | |||
<code>$conda search --subdir osx-64 python=3.6</code> | |||
or set the <code>subdir</code> configuration temporarily through the <code>CONDA_SUBDIR</code> environment variable: | |||
<code>CONDA_SUBDIR=osx-64 conda search python=3.6</code> | |||
|} | |} | ||
== Reference == | == Reference == | ||
<references /> |
Revision as of 10:13, 24 May 2023
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 ~/.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
|