我正在尝试安装 geopandas.进行以下设置:
I'm trying to install geopandas. Have the following setup:
尝试了两件事:
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:
pip install 按以下顺序下载的轮子:GDAL、Fiona、pyproj、rtree 和 shapely(例如 pip install GDAL-1.11.2-cp27-none-win_amd64.whl)pip install geopandaspip install the downloaded wheels in the following order: GDAL, Fiona, pyproj, rtree and shapely (for example pip install GDAL-1.11.2-cp27-none-win_amd64.whl)pip install geopandas这篇关于安装 Python geopandas 失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
如何在 conda 环境中安装 Selenium?How to install Selenium in a conda environment?(如何在 conda 环境中安装 Selenium?)
使用 Anaconda installe 在 Windows 上获取 CUDA 和 CUDNNget the CUDA and CUDNN version on windows with Anaconda installe(使用 Anaconda installe 在 Windows 上获取 CUDA 和 CUDNN 版本)
如何下载适用于 python 3.6 的 AnacondaHow can I download Anaconda for python 3.6(如何下载适用于 python 3.6 的 Anaconda)
使用两个不同的 Python 发行版Using two different Python Distributions(使用两个不同的 Python 发行版)
除了 OSX 上现有的 pyenv 安装之外,如何安装 AnaHow can I install Anaconda aside an existing pyenv installation on OSX?(除了 OSX 上现有的 pyenv 安装之外,如何安装 Anaconda?)
在 Cygwin 中为 Anaconda 永久设置 Python 路径Permanently set Python path for Anaconda within Cygwin(在 Cygwin 中为 Anaconda 永久设置 Python 路径)