Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: use miniforge and warn about licensing issues on anaconda/miniconda distributions

...

The packages can come from different sources, called channels. The most popular of the these channels is Anaconda (which is often confused with Conda) but in the scientific community community conda-forge is more common, where you can find thousands of packages. Advanced users can also create their own channels (on a server or using the local filesystem).

Info
titleConda installation

Conda is made available at ECWMF through the module system, so you don't need to install it to use it on HPCF.

However, you may also want to install it on your work/personal computer to create and organise your environments. The simplest way is to download and install the Miniconda distribution Miniforge distribution and follow the instructions to make it available in your session:


curl
-LO
 -L -O "https://
repo.anaconda
github.com/
miniconda/Miniconda3-latest-Linux-x86_64.sh # Linux
curl -LO https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh # MacOS M1
curl -LO https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh # MacOs Intel

Or even on Windows if you're feeling wild: Miniconda3-latest-Windows-x86_64.exe

Just run the script to install Conda. It will update your shell config so you'll need to reload your shell session to access it. For linux (similar approach on MacOS):

bash /Miniconda3-latest-Linux-x86_64.sh. # see --help for options such as -p PREFIX
source ~/.bashrc

conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh


Warning
titleAvoid Anaconda and miniconda distributions

You should avoid installing conda through the Anaconda or Miniconda distributions, as you may run into licensing issues. Access to Anaconda’s public repository of packages is only free to individuals and small organisations (<200 employees). A paid license is required for larger organizations and anyone embedding or mirroring Anaconda’s repository. See Anaconda's Terms of Service for details.

We strongly recommend using the Miniforge distribution as described above instead. If you have inadvertently installed conda from those sources without a license, you must remove the installation and any environments you may have and recreate them using Miniforge

If that works, you'll see a (base) at the start of your prompt, which tells us we are in the "base" conda environment

.

Creating environments

There are multiple ways of creating environments: from a file containing the list of packages and their versions, by providing the list on the command line, by creating an empty environment and adding the packages one by one, etc.

...