Installing Cartopy

Installing Cartopy

Pre-built binaries

The easiest route to installing cartopy is through Conda. For all platforms installing cartopy can be done with:

conda install -c scitools cartopy
Additional options include:

Building from source

The latest release of Cartopy is available from

Once you have satisfied the requirements detailed below, simply run:

python install

For non-standard locations, additional build lib & include paths can be provided as per-usual at build_ext phase:

python build_ext --inplace -I/path/to/include -L/path/to/lib
python install


These external packages are required to install Cartopy or gain access to significant Cartopy functionality.

Many of these packages are available in Linux package managers such as aptitude and yum. For example, it may be possible to install Numpy using:

apt-get install python-numpy

If you are installing dependencies with a package manager on Linux, you may need to install the development packages (look for a “-dev” suffix) in addition to the core packages.

Many of these dependencies are built as part of Cartopy’s conda distribution. The recipes for these can be found at

python 2.7 or later (
Cartopy requires Python 2.7 or later.

Cython 0.15.1 or later (

numpy 1.6 or later (
Python package for scientific computing including a powerful N-dimensional array object.
GEOS 3.3.3 or later (
GEOS is an API of spatial predicates and functions for processing geometry written in C++.
shapely 1.5.6 or later (
Python package for the manipulation and analysis of planar geometric objects.
pyshp 1.1.4 or later (
Pure Python read/write support for ESRI Shapefile format.
PROJ.4 4.9.0 or later (
Cartographic Projections library.
six 1.3.0 or later (
Python 2 and 3 compatibility.

Optional Dependencies

These are optional packages which you may want to install to enable additional Cartopy functionality.

matplotlib 1.3.0 or later (
Python package for 2D plotting. This package is required for any graphical capability.
GDAL version 1.10.0 (
GDAL is a translator library for raster and vector geospatial data formats, which has powerful data transformation and processing capabilities.
Pillow 1.7.8 or later (
Popular fork of PythonImagingLibrary.
pyepsg 0.2.0 or later (
A simple Python interface to
scipy 0.10 or later (
Python package for scientific computing.
OWSLib 0.8.7 (
Python package for client programming with Open Geospatial Consortium (OGC) web service. Gives access to cartopy ogc clients.

Testing Dependencies

These packages are required for the full Cartopy test suite to run.

mock 1.0.1 (
Python mocking and patching package for testing. Note that this package is only required to support the Cartopy unit tests.
nose 1.2.1 or later (
Python package for software testing.
pep8 1.3.3 or later (
Python package for software testing.