Cartopy installation

With Spack you can deploy Cartopy in your kernel, for example with:

$ spack env activate python-311
$ spack install py-cartopy~epsg~ows~plotting

This installs Cartopy with the support of:

The following packages are also installed:

Alternatively, Cartopy can also be installed with Linux package managers, for example for Debian≥9 (Stretch) with:

$ sudo apt install proj-bin
$ sudo apt install libproj-dev
$ sudo apt install libgeos-dev
$ brew install proj
$ brew install geos

Cartopy can then be installed for your kernel, for example with:

$ export PIP_NO_BINARY=:shapely:
$ pipenv install cython numpy cartopy

For the Cartopy Cartopy examples, you will also need the following two Python packages:

$ pipenv install matplotlib scipy

Optional requirements

Plotting requirements

Verify

Finally, you can check the installation with:

>>> import cartopy