To install CliMetLab, just run the following command:
pip install climetlab
The CliMetLab pip
package has been tested successfully with the latest versions of its dependencies (build logs).
No conda package has been created yet. pip install climetlab
can be used in a conda environment.
Note
Mixing pip
and conda
could create some dependencies issues, we recommend installing as many dependencies as possible with conda, then install CliMetLab with pip
, as recommended by the anaconda team.
CliMetLab requires Python 3.7 or above. Depending on your installation, you may need to substitute
pip
topip3
in the examples below.Python 3.10 is not supported yet, as some dependencies are not available for python 3.10.
If the installation fails with the following error:
Collecting ecmwflibs>=x.x.x (from climetlab)
Could not find a version that satisfies the requirement ecmwflibs>=0.0.90 (from climetlab) (from versions: )
No matching distribution found for ecmwflibs>=x.x.x (from climetlab)
you will need to make sure that you are using the latest version of pip
(>=21.0.0):
% pip install --upgrade pip
% pip install climetlab
If the installation fails with the following error:
AttributeError: module 'enum' has no attribute 'IntFlag'
This means that there is an old version of of the enum
package on your system that needs to be removed:
% pip uninstall -y enum34
% pip install climetlab