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!
Miniforge3 25.3.1 (September 2025)
This procedure will install Miniforge3. It will likely be the same for newer versions of Miniforge.
See its release pages here.
- Download the
Miniforge3-XX.Y.Z-0-Linux-x86_64.sh
script. - Run the installer:
sh Miniforge3-XX.Y.Z-0-Linux-x86_64.sh -s -b -u -p ~/miniforge3
The installation will install everything in yourminiforge3
directory. - The above installation will not automatically add
miniforge3
to yourPATH
.
To useconda
you should source this:source ~/miniforge3/bin/activate
If you want to useconda
in your job-scripts, be sure to put the above in the job-script.
The above completes the installation procedure.
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/miniforge3/bin/activate
fi
Miniconda 24.5.0 (June 2024) (DISCOURAGED)
Please do not install Miniconda (it relies heavily on 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.
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
Anaconda (DISCOURAGED!)
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.