Skip to content
NAISS Logo Allocations Support Training Software naiss.se

Miniforge

Using Miniforge on Arrhenius

In the terminal, load the requires software modules:

module load Miniforge

This command will give you access to the conda and mamba commands which can be used to create and manage Python environments. The Miniforge module does not provide a Python interpreter or libraries, but it provides access to the Miniforge package manager which allows you to create your own virtual environments and install packages from the conda-forge channel.

Creating Conda Environment

Creating a Miniforge (Conda) environment is similar to using venv but with some additional features. You can specify the Python version and also include non-Python dependencies if needed. The following example creates a new Conda environment called myconda-env with Python 3.13 and installs some common scientific packages.

# Create with specific Python version
conda create -n myconda-env python=3.13

# Activate
conda activate myconda-env

# Install packages
conda install numpy scipy matplotlib

# Deactivate
conda deactivate

Note

It is usual good practice to give the python version when creating a new conda environment to ensure that the correct version of Python is used. This can be done by specifying the python argument when creating the environment.