如何成功安装pyproj和geopandas? [英] how to successfully install pyproj and geopandas?

查看:326
本文介绍了如何成功安装pyproj和geopandas?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过运行!pip install geopandas通过python安装geopandas,但这失败了,"python setup.py egg_info"失败,错误代码为1,然后为长目录路径.我在网上阅读到pyproj是Geopandas所必需的,并且还尝试安装pyproj,但是没有运气,类似的错误.有人能指出我正确的方向吗?谢谢.

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.

推荐答案

感谢 conda-forge社区,使用 conda程序包管理器(或:它的依赖性,因为这很困难.

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).

如果您有conda,那就是:

If you have conda, it is just:

conda install -c conda-forge geopandas

要安装conda,您可以安装Anaconda python发行版或miniconda: http://conda. pydata.org/docs/download.html

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

有关更多详细信息,请参见GeoPandas文档,特别是有关如何使用设置进行安装的GeoPandas创建新环境以确保其始终有效的方法:

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

这篇关于如何成功安装pyproj和geopandas?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆