If you haven’t already, install conda. You’ll also need to have the
conda-forge channel enabled: if you don’t already, you can do so with
conda config --add channels conda-forge.
conda install geoplot and you’re done.
Things are much trickier if you don’t have access to
conda, for whatever reason. You will need
proj4 (docs) and
GEOS (docs) external libraries, and
cartopy (which relies on
Here’s an approximate code path:
# Use of a virtualenv is strongly encouraged. mkdir my_project cd my_project virtualenv venv # Easy installs that shouldn't cause any problems. pip install matplotlib seaborn # ... install proj4 and GEOS using brew, apt-get, etc. ... # Install shapely with the no-binary option. # See https://github.com/Toblerity/Shapely/issues/435 pip install --no-binary shapely # Install the rest. pip install geopandas pip install cartopy pip install geoplot