$ pip install cartopy … lib/cartopy/trace.cpp:767:10: fatal error: geos_c.h: No such file or directory … #include "geos_c.h" …
$ sudo apt -y install libgeos-dev $ pip install cartopy
set_extent
, the following solution (found in this StackOverflow answer) helped: pip uninstall shapely pip install --no-binary :all: shapely
mpl_toolkits.basemap
as it is now considered deprecated.