InstallationΒΆ

Depends on libgdal, rasterio, fiona, shapely and numpy

Using Ubuntu 14.04:

sudo apt-get install python-numpy libgdal1h gdal-bin libgdal-dev
pip install rasterstats

Or homebrew on OS X:

brew install gdal
pip install rasterstats

For Windows, follow the rasterio installation and then run:

pip install rasterstats