Installation

https://github.com/conda-forge/miniforge

Unix-like platforms (Mac OS & Linux)

  wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh

UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xab in position 10263: invalid start byte

paru -S mambaforge

if your shell is Bash or a Bourne variant, enable conda for the current user with

echo "[ -f /opt/mambaforge/etc/profile.d/conda.sh ] && source /opt/mambaforge/etc/profile.d/conda.sh" >> ~/.bashrc

or, for all users, enable conda with

sudo ln -s /opt/mambaforge/etc/profile.d/conda.sh /etc/profile.d/conda.sh
mamba init

Check install successful

yanboyang713@Meta-Scientific-Linux ~ % mamba --version
mamba 1.4.2
conda 23.3.1

Quickstart

https://mamba.readthedocs.io/en/latest/user_guide/mamba.html#mamba

Example

mamba create -n myjlabenv jupyterlab -c conda-forge
mamba activate myjlabenv  # activate our environment
jupyter lab               # this will start up jupyter lab and open a browser
mamba activate myjlabenv
mamba install bqplot  # now you can use bqplot in myjlabenv
mamba install "matplotlib>=3.5.0" cartopy  # now you installed matplotlib with version>=3.5.0 and default version of cartopy

Reference List

  1. https://blog.hpc.qmul.ac.uk/mamba.html#:~:text=mamba%20is%20a%20re%2Dimplementation,Red%20Hat%2C%20Fedora%20and%20OpenSUSE
  2. https://mamba.readthedocs.io/en/latest/index.html
  3. https://mamba.readthedocs.io/en/latest/mamba-installation.html#mamba-install