Python package manager
miniforge¶
conda-forge/miniforge is a Python distribution that uses
- community-driven conda-forge repository
- basic conda
package manager and the fast new mamba package manager.
Installation
Download and run the installer in conda-forge/miniforge
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)
conda update python --yes && conda update --all --yes
# `bash` and `zsh` integration
conda init bash || true
conda init zsh || true
micromamba¶
micromamba
is a fully statically-linked, self-contained, executable for conda environments.
Installation¶
Update¶
Commands¶
micromamba
has no "base" environment. Other than that, it shares basically the same commands as conda
and mamba
.
To create an environment:
To create an environment from a spec file
To install an environment to a specific folder
To activate an environment:
To run a command from an environment
Or