We will use the conda
and mamba
command line tools to manage installation of python packages and virtual environments.
In the workshop we will look into these crucial tools in more detail, but for now the aim is just to install them and ensure that they work.
If you do not have conda
or mamba
installed (or are not sure how to check) then follow the instructions below.
The easiest way to get these tools is through the Miniforge distribution. This distribution downloads and installs a minimal set of tools to manage your python installation.
If you are confused by the many similar terms associated with conda
and mamba
the glossary at the bottom of this page may help.
You can test whether you already have conda
by opening a terminal (in Linux) or Powershell (in Windows) and running
conda info
You can test whether you already have mamba
by opening a terminal on Linux or Powershell on Windows and running
mamba info
If you have conda but not mamba you can install mamba
to your base
environment as follows:
conda install mamba -n base -c conda-forge
You can learn more about mamba
installation (from the project documentation)[https://mamba.readthedocs.io/en/latest/installation.html].
Note that mamba must be installed into the base
environment that was created automatically when you installed conda
.
Watch this video for the current windows installation process. On the following page there is a further video showing how you can test your installation.
x86_64
Windows installation.x86_64 (amd64)
installation and for Mac OS select the x86_64
(unless you have a new Apple Silicon chip) .cd ~/Downloads
bash Mambaforge-MacOSX-x86_64.sh
or the Linux equivalentconda init
” then type “yes”There are a lot of related and similar-sounding terms being thrown around in this space and it can get confusing trying to keep track of all of them. Here is a quick lowdown on what the key terms refer to:
python
and conda
command line tools to manage python virtual environment and installation of python packages. The Anaconda distribution is controlled by Anaconda Inc.conda
command line tools for installing packages turned out to be quite slow in practice. A company called QuantStack led the development of an open source replacement package for conda
called mamba
that is much faster.mamba
installs packages by default from conda-forgepython
packages. This is the default channel when using mamba
. The conda-forge channel is generally considered to be more up-to-date then the Anaconda Main channelmamba
is also installed and the conda-forge channel is set as the default channel for package installations.