Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
518 views
in Technique[技术] by (71.8m points)

python - how to successfully install pyproj and geopandas?

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...