Installation#

Requirements#

Build Dependencies#

Runtime Dependencies#

Dependency

Link

eckit

ecmwf/eckit

eccodes

ecmwf/eccodes

Installation via PyPI#

uv venv
source .venv/bin/activate
uv pip install pymetkit

Set the METKIT_HOME environment variable so findlibs can locate the library:

export METKIT_HOME=<path_to_metkit_home>

Diagnosing Library Resolution#

PyMetKit uses findlibs to locate the metkit shared library and its runtime dependencies at import time. If you encounter errors caused by the wrong library version being loaded, the built-in CLI can help you inspect what findlibs resolves on your system.

Print the installation root of the metkit library:

python -m pymetkit --print-home

Print the resolved home directories for all runtime dependencies (eckit, eccodes, metkit), together with any active FINDLIBS_DISABLE_* environment variables that suppress specific search paths:

python -m pymetkit --print-home-deps

ERROR lines indicate dependencies findlibs could not locate — set the corresponding <LIBNAME>_HOME environment variable to resolve them explicitly. eccodes is optional and is reported as such.