We encourage users to install Conda in their HOME
directories since it does not make sense to host a global Conda installation.
Please periodically clean your conda
cache so save substantial disk-space!
See this page for more details on cleaning up.
Please carefully follow the installation procedure as shown here.
If you have any remnants of conda
mentions in your $HOME/.bashrc
please delete all of these before proceeding.
Please be aware of the Terms of Service (ToS) that Anaconda has. Employees at DTU cannot use Anaconda for anything but teaching. Please see more information on the PythonSupport page.
If you want to use Anaconda for research, please carefully follow these instructions!
Miniconda 24.5.0 (June 2024)
This procedure has been tested with the 24.5.0 release of Miniconda. It will likely work for later versions.
- Download the executable, it should be named something like
Miniconda3-latest-Linux-x86_64.sh
. - Run the installer by issuing (this will install it in your
HOME
directory, with the folder nameminiconda3
):sh Miniconda3-latest-Linux-x86_64.sh -b -u -p ~/miniconda3
This installation procedure uses appropriate defaults. - Generally, when you need to use
conda
, you shouldsource
it.
Do this:source ~/miniconda3/bin/activate
If you want to use Conda in your job-scripts, you also need to add the above in your submit scripts. - IMPORTANT:
By default, Miniconda downloads files from the public Anaconda repository. However, the Terms of Service forbids DTU employees to use it in research.
Please execute the following commands to remove the use of the public Anaconda repository. It will then only use theconda-forge
repository:conda config --add channels conda-forge
conda config --remove channels defaults
Please: do not install anything from the public Anaconda repositories.
The 4th step above is crucial in order to ensure that we, as a large organization, upholds the Terms of Service.
Automatically sourcing conda
when you login
# Set up the bash environment if interactive login.
if tty -s ; then
# lots of code
fi
Change it so that it looks like this:
# Set up the bash environment if interactive login.
if tty -s ; then
# lots of code
source $HOME/miniconda3/bin/activate
fi
Miniforge
Feel free to install Miniforge as your conda
provider. It defaults to the conda-forge
channel, which is fully open source.
Anaconda
Please do not install Anaconda.
The Terms of Service for Anaconda tells users that any use of the public Anaconda offerings for organizations (including universities etc.) with more than 200 employees entails a monthly fee.