1.9 KiB
Conda / Miniforge
Conda/Miniforge (https://github.com/conda-forge/miniforge) is a package manager that can be used to easily create tailored Python environments without having required C/... binaries of some packages installed on the local system. (i.e. conda will take care that required binaries are installed into the environment)
Due to certain license restrictions the usage of Anaconda at PSI is not allowed without obtaining a professional license from Anaconda.com!
This guide explains how to install and configure miniforge to not violate anaconda.com licensing terms.
Also see: https://www.psi.ch/en/awi/infos
Installation
On a standard Linux system the miniforge can be simply installed in your home as follows:
- Download the miniforge installer:
curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
- Run the Installer:
bash Miniforge3-Linux-x86_64.sh
You need to accept the license and specify your install directory, which, most cases would be ~/miniforge3
At the end you are asked whether you want to modify your shells startup script and activate conda automatically. We recommend to answer that question with NO and not do it. By automatically activating conda you might have very strange side effects! The promt looks something like this:
You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>>
After the installation is finished you can then activate conda/miniforge manually via
eval "$(~/mpc/homes/thiele_b~/miniforge3/bin/conda shell.bash hook)"
To make things easier we recommend that you add an alias in your ~/.bashrc that looks like this (simply add this at the end of the file):
alias load_conda='eval "$(~/miniforge3/bin/conda shell.bash hook)"'
Then you can activate/load conda by simply typing load_conda in your shell/terminal.