Installation#

The package can be installed in several ways. The most straightforward way is to install it from PyPI with:

pip install pycmor

More details are given below

On an HPC System#

If you are on an HPC system, you probably don’t have root access. In this case, you can install the package in your home directory by running:

pip install --user pycmor[<extras>]

Or directly from GitHub:

pip install --user git+https://github.com/esm-tools/pycmor.git[<extras>]

From PyPI#

This is the most straightforward way to install the package if you don’t need to modify the source code. Just run:

pip install pycmor[<extras>]

You can also install the latest version from the repository by running:

pip install git+https://github.com/esm-tools/pycmor.git[<extras>]

If you want to ensure an isolated install and make sure nothing conflicts with other packages you have, and you do not want to change source code, you can have a look at pipx.

From conda-forge#

The package is not yet available on conda-forge. We are working on it.

From source#

If you want to modify the source code, you can install the package by cloning the repository and running:

git clone https://github.com/esm-tools/pycmor.git
cd pycmor
python -m pip install -e .[<extras>]

If you need the developer requirements as well (i.e. for running tests), you can install them by running:

python -m pip install -e .[dev,<extras>]