Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
habrok:examples:mamba [2024/12/06 15:56] – [Mamba installation] fokke | habrok:examples:mamba [2024/12/12 07:21] (current) – [Manual Mamba initialization] fokke | ||
---|---|---|---|
Line 3: | Line 3: | ||
Mamba (https:// | Mamba (https:// | ||
- | Please also note, that you should only use mamba/conda repositories that have licenses that allow you to use it. | + | In general Mamba and conda environments cannot be used together with **any** of our preinstalled software modules that depend on Python. |
+ | |||
+ | Please also note, that you should only use mamba/conda repositories that have licenses that allow your intended usage. | ||
==== Installation ==== | ==== Installation ==== | ||
- | Here are the installation steps as of December 2024, which is based on the instructions on the website, which suggest to use miniforge ( https:// | + | 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 | * Run the miniforge installer | ||
< | < | ||
Line 13: | Line 15: | ||
bash Miniforge3-$(uname)-$(uname -m).sh | bash Miniforge3-$(uname)-$(uname -m).sh | ||
</ | </ | ||
- | * Check and if you agree say " | + | * Check the license conditions, |
- | * The software will be installed in a `miniforge3` folder in your home directory. Change this if you prefer a different location. | + | * The software will be installed in a '' |
- | * You can opt for automatic initialization of conda, but you **must** disable the automatic activation of the base environment, | + | * 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: | * After logging in again, disable the automatic activation of the base environment using: | ||
< | < | ||
- | conda config --set auto_activate_base false | + | mamba config --set auto_activate_base false |
+ | </ | ||
+ | * In case you want to use the base environment, | ||
+ | < | ||
+ | mamba activate base | ||
</ | </ | ||
- | ==== Tips and tricks | + | ==== Manual Mamba initialization |
- | | + | In case you did **not** let Mamba change your login scripts during |
< | < | ||
- | mamba activate base | + | . ~/ |
+ | . ~/ | ||
</ | </ | ||
- | * In order to undo the login profile modifications for mamba you can use the following command, where bash is your actual command line shell: | + | 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 | mamba init --reverse bash | ||
</ | </ | ||
- | You can reverse | + | |
- | < | + | You can reverse |
+ | < | ||
~/ | ~/ | ||
</ | </ | ||
- | |||
- | |||
- | |||