Installation
Python Package Index
The easiest way of installing enstools is using pip:
>>> pip install enstools-compression
Dependencies
Besides the dependencies that are handled by pip, GEOS is required by cartopy which is a dependency of enstools. In Ubuntu it can be installed by doing:
>>> apt install libgeos-dev
Workaround for GEOS
In case the user has no root permissions and don’t manage to install GEOS it is possible to install enstools without cartopy. To do that:
- Install enstools without its dependencies:
>>> pip install enstools --no-deps
- Get list of missing dependencies and ignore cartopy:
>>> pip check | cut -d "," -f 1 | cut -d " " -f 4 | grep -v "cartopy" > pending_requirements.txt
- Install the pending requirements:
>>> pip install -r pending_requirements.txt
- Finally, install enstools-compression
>>> pip install enstools-compression
This will allow the installation of enstools-compression but it won’t be possible to use enstools features that require cartopy.
For development
A convenient way to install enstools for development is to make a local copy of the repository and install it as an editable package:
>>> git clone https://github.com/wavestoweather/enstools-compression
>>> pip install -e enstools-compression/