Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
habrok:examples:mamba [2024/12/06 14:42] – created fokke | habrok:examples:mamba [2024/12/12 07:21] (current) – [Manual Mamba initialization] fokke | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Mamba installation ====== | ====== Mamba installation ====== | ||
- | Mamba (https:// | + | Mamba (https:// |
- | Here are the installation steps as of December 2024: | + | In general Mamba and conda environments cannot be used together with **any** |
+ | Please also note, that you should only use mamba/conda repositories that have licenses that allow your intended usage. | ||
+ | ==== Installation ==== | ||
+ | Here are the installation steps (tested in December 2024), which are based on the instructions on the website, which suggest to use miniforge ( https:// | ||
+ | * Run the miniforge installer | ||
+ | < | ||
+ | curl -L -O " | ||
+ | bash Miniforge3-$(uname)-$(uname -m).sh | ||
+ | </ | ||
+ | * Check the license conditions, and if you agree say " | ||
+ | * The software will be installed in a '' | ||
+ | * You can opt for automatic initialization of mamba, but you **must** disable the automatic activation of the base environment, | ||
+ | * After logging in again, disable the automatic activation of the base environment using: | ||
+ | < | ||
+ | mamba config --set auto_activate_base false | ||
+ | </ | ||
+ | * In case you want to use the base environment, | ||
+ | < | ||
+ | mamba activate base | ||
+ | </ | ||
+ | |||
+ | ==== Manual Mamba initialization ==== | ||
+ | |||
+ | In case you did **not** let Mamba change your login scripts during the installation, | ||
+ | < | ||
+ | . ~/ | ||
+ | . ~/ | ||
+ | </ | ||
+ | Note that you have to run these every time you want to use Mamba. | ||
+ | |||
+ | ==== Modifying the login profile ===== | ||
+ | |||
+ | In order to undo the login profile modifications for mamba you can use the following command, where bash is your actual command line shell: | ||
+ | < | ||
+ | mamba init --reverse bash | ||
+ | </ | ||
+ | |||
+ | You can reverse the previous step, to have mamba available on login, using: | ||
+ | < | ||
+ | ~/ | ||
+ | </ | ||