Conda vs Mamba comparision: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{| class="wikitable" |+ !Type !Mamba !Conda !Notes |- |clone env |Export the contents of the existing environment to a YAML file. <code>micromamba env export -n oldenv > oldenv.yaml</code> Create a new environment from the YAML file. <code>micromamba env create -n newenv -f oldenv.yaml</code> |conda create --name CLONE_ENV_NAME --clone ENV_NAME | |- | | | | |- | | | | |} == References == <references />") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 17: | Line 17: | ||
| | | | ||
|- | |- | ||
|Installing | |||
| | |||
|conda install -n base -c conda-forge mamba | |||
|mamba must be installed on base | |||
|- | |||
|Adding channels | |||
| | |||
|conda config --add channels conda-forge | |||
| | |||
|- | |||
|Updating | |||
|mamba update -n base mamba | |||
|conda update -n base -c defaults conda | |||
| | |||
|- | |||
|Finding a Package | |||
|mamba repoquery search PACKAGE | |||
| | |||
| | |||
|- | |||
|Searching for dependencies | |||
|mamba repoquery depends -a PACKAGE | |||
| | |||
| | |||
|- | |||
|Creating an environment | |||
|mamba create -n ENV_NAME PACKAGE | |||
| | | | ||
| | | | ||
|- | |||
|Adding/Updating software | |||
|mamba install -n ENV_NAME PACKAGE | |||
mamba update -n ENV_NAME --all | |||
| | | | ||
| | | | ||
|- | |- | ||
|Removing a package | |||
|mamba remove -n ENV_NAME PACKAGE | |||
| | |||
| | | | ||
|- | |||
|Undoing changes to an environment | |||
|mamba list -n ENV_NAME --revisions | |||
mamba install -n ENV_NAME --revision 1 | |||
| | | | ||
| | | | ||
|- | |||
|Show environment | |||
| | |||
|conda env export --no-builds | |||
| | |||
|- | |||
|Removing an environment | |||
|mamba env remove -n ENV_NAME | |||
|conda remove --name ENV_NAME --all | |||
| | |||
|- | |||
|Exporting an environment | |||
|mamba env export -n ENV_NAME > ENV_NAME.yaml | |||
|<nowiki>conda env export -n ENV_NAME --no-builds | grep -v "prefix" > ENV_NAME.yaml</nowiki> | |||
| | |||
|- | |||
|Importing an environment | |||
|mamba env create --file ENV_NAME.yaml | |||
|conda env create --file ENV_NAME.yaml | |||
conda create -n ENV_NAME --file ENV_NAME.txt | |||
| | |||
|- | |||
|Viewing a list of your environments | |||
|<nowiki>mamba list | grep -i <key to find></nowiki> | |||
mamba info | |||
mamba env list | |||
|<nowiki>conda list | grep -i <key to find></nowiki> | |||
conda info --envs | |||
conda env list | |||
| | | | ||
|} | |} |
Latest revision as of 13:20, 20 December 2023
Type | Mamba | Conda | Notes |
---|---|---|---|
clone env | Export the contents of the existing environment to a YAML file.
Create a new environment from the YAML file.
|
conda create --name CLONE_ENV_NAME --clone ENV_NAME | |
Installing | conda install -n base -c conda-forge mamba | mamba must be installed on base | |
Adding channels | conda config --add channels conda-forge | ||
Updating | mamba update -n base mamba | conda update -n base -c defaults conda | |
Finding a Package | mamba repoquery search PACKAGE | ||
Searching for dependencies | mamba repoquery depends -a PACKAGE | ||
Creating an environment | mamba create -n ENV_NAME PACKAGE | ||
Adding/Updating software | mamba install -n ENV_NAME PACKAGE
mamba update -n ENV_NAME --all |
||
Removing a package | mamba remove -n ENV_NAME PACKAGE | ||
Undoing changes to an environment | mamba list -n ENV_NAME --revisions
mamba install -n ENV_NAME --revision 1 |
||
Show environment | conda env export --no-builds | ||
Removing an environment | mamba env remove -n ENV_NAME | conda remove --name ENV_NAME --all | |
Exporting an environment | mamba env export -n ENV_NAME > ENV_NAME.yaml | conda env export -n ENV_NAME --no-builds | grep -v "prefix" > ENV_NAME.yaml | |
Importing an environment | mamba env create --file ENV_NAME.yaml | conda env create --file ENV_NAME.yaml
conda create -n ENV_NAME --file ENV_NAME.txt |
|
Viewing a list of your environments | mamba list | grep -i <key to find>
mamba info mamba env list |
conda list | grep -i <key to find>
conda info --envs conda env list |