how to successfully install pyproj and geopandas?

user3144095 picture user3144095 · Dec 23, 2015 · Viewed 64.5k times · Source

I have tried to install geopandas via I python by running !pip install geopandas, but this fails with "python setup.py egg_info" failed with error code 1 and then Path to long directory. I read online that pyproj is required for geopandas and also tried to install it however no luck, similar error. Would anyone be able to point me in the right direction? Thank you.

Oh by the way, if this helps, I was able to install shapely, fiona, and Descartes using this method.

Answer

joris picture joris · Jun 4, 2016

Thanks to the conda-forge community, geopandas is actually pretty easy to install on all platforms using the conda package manager (or: its dependencies, as this is the difficulty).

If you have conda, it is just:

conda install -c conda-forge geopandas

To install conda, you can install the Anaconda python distribution or miniconda: http://conda.pydata.org/docs/download.html

See the GeoPandas docs for more details, specifically on how to create a new environment with GeoPandas installed with settings to ensure this always works: https://geopandas.org/install.html#creating-a-new-environment