Skip to content

Setup miniforge

The community-driven conda-forge repository with the basic conda package manage as well as the fast new mamba package manager.

Install (Windows)

Download and run the installer in conda-forge/miniforge

Install (Linux)

CONDA_PATH="${HOME}/conda"
CONDA_SH="${CONDA_PATH}/etc/profile.d/conda.sh"
CONDA_URL="https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh"

# Download and install
wget -O /tmp/conda.sh "${CONDA_URL}"
bash /tmp/conda.sh -bup "${CONDA_PATH}"
source "${CONDA_SH}"
conda activate base

# conda package manager setup
conda config --set auto_activate_base false
conda config --set default_threads $(nproc)
mamba update python --yes && mamba update --all --yes

# `bash` and `zsh` integration
conda init bash || true
conda init zsh || true

Comments