Install Python geopandas failed(安装 Python geopandas 失败)
问题描述
我正在尝试安装 geopandas.进行以下设置:
I'm trying to install geopandas. Have the following setup:
- Windows-64
- Anaconda2(64 位)
- Python 2.7
尝试了两件事:
1)
pip install geopandas
这给了我以下错误:
WindowsError: [Error 126] The specified module could not be found
and Command "python setup.py egg_info" failed with error code 1 in c:usersusernameappdata本地 emppip-install-_kgeywshapely
类似问题的解决方案这里 建议这是因为正在转换的路径中的斜杠.不知道如何测试.
The solutions to the similar problem here suggest that it's because of the slashes in the path being converted. Not sure how to test this.
2)
anaconda search -t conda geopandas
然后我搜索适合我的设置 (Windows-64) 的 geopandas 版本:
I then search for the version of geopandas suitable for my setup (Windows-64):
conda install -c maxalbert geopandas
会产生以下错误:
UnsatisfiableError: The following specifications were found to be in conflict:
- geopandas
Use "conda info <package> to see the dependencies for each package
当我运行命令 conda info geopandas
时,我会得到一个 geopandas 版本列表.不知道如何从这里开始.
When I run the command conda info geopandas
I get a list of geopandas version. Not sure how to proceed from here.
推荐答案
这是一个常见问题,解决方案是手动安装所有依赖项(正如 Geoff Boeing 在这里描述的:https://geoffboeing.com/2014/09/using-geopandas-windows/)
It is a common problem and the solution is to install all dependencies manually (as Geoff Boeing describes here: https://geoffboeing.com/2014/09/using-geopandas-windows/)
首先尝试conda install -c conda-forge geopandas
.如果还是不行,请执行以下步骤:
First try to conda install -c conda-forge geopandas
. If it doesn't work, do the following steps:
- 下载适用于 GDAL、Fiona、pyproj、rtree 和 shapely 的 Python 版本和操作系统的轮子(例如来自 Gohlke)
- 卸载所有 OSGeo4W、GDAL、Fiona、pyproj、rtree 和 shapely 软件包
pip install
按以下顺序下载的轮子:GDAL、Fiona、pyproj、rtree 和 shapely(例如pip install GDAL-1.11.2-cp27-none-win_amd64.whl
)- 现在您可以
pip install geopandas
- Download wheels for your Python version and OS for GDAL, Fiona, pyproj, rtree and shapely (e.g. from Gohlke)
- Uninstall all OSGeo4W, GDAL, Fiona, pyproj, rtree and shapely packages
pip install
the downloaded wheels in the following order: GDAL, Fiona, pyproj, rtree and shapely (for examplepip install GDAL-1.11.2-cp27-none-win_amd64.whl
)- Now you can
pip install geopandas
这篇关于安装 Python geopandas 失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:安装 Python geopandas 失败
- python check_output 失败,退出状态为 1,但 Popen 适用于相同的命令 2022-01-01
- 如何将一个类的函数分成多个文件? 2022-01-01
- python-m http.server 443--使用SSL? 2022-01-01
- 分析异常:路径不存在:dbfs:/databricks/python/lib/python3.7/site-packages/sampleFolder/data; 2022-01-01
- 如何在 Python 的元组列表中对每个元组中的第一个值求和? 2022-01-01
- pytorch 中的自适应池是如何工作的? 2022-07-12
- padding='same' 转换为 PyTorch padding=# 2022-01-01
- 如何在 python3 中将 OrderedDict 转换为常规字典 2022-01-01
- 使用Heroku上托管的Selenium登录Instagram时,找不到元素';用户名'; 2022-01-01
- 沿轴计算直方图 2022-01-01