Installation

GridDataFormats can be easily installed via the conda or pip package managers.

It is a pure-python package but it has a few other packages (namely scipy) as dependencies that contain compiled code. For ease of installation we recommend conda but pip and installation from source are also fully supported.

Installing GridDataFormats with conda

The conda package manager installs, runs, and updates whole environments with all their dependencies.

Installing GridDataFormats from the conda-forge channel can be achieved by adding “conda-forge” to your channels with:

conda config --add channels conda-forge

Once the conda-forge channel has been enabled, GridDataFormats can be installed with:

conda install griddataformats

Any missing dependencies will be automatically downloaded and installed in the appropriate versions.

You can later update with

conda update griddataformats

Installing GridDataFormats with pip

Install with pip:

pip install gridDataFormats

and you can later update with

pip install --upgrade gridDataFormats

pip also automatically downloads all missing dependencies and will attempt to compile them if necessary; this step can fail if you do not have the correct build environment with the necessary compilers installed. You should then read the pip documentation to learn what is needed or switch to the conda installation.