首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装geopandas

无法安装geopandas
EN

Stack Overflow用户
提问于 2021-03-23 08:22:59
回答 2查看 1.1K关注 0票数 0

我已经尝试了geopandas的documentation中的所有安装方法,但都不起作用。

conda install geopandas给出

代码语言:javascript
复制
UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your CUDA driver:

  - feature:/win-32::__cuda==10.1=0

Your installed CUDA driver is: 10.1

conda install --channel conda-forge geopandas给出了相同的错误。

使用conda创建了一个新环境:

代码语言:javascript
复制
Package python conflicts for:
python=3
geopandas -> python[version='2.7.*|3.5.*|3.6.*|>=3.5|>=3.6|3.4.*|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=2.7,<2.8.0a0|>=3.5,<3.6.0a0']
geopandas -> pandas[version='>=0.24'] -> python[version='>=3.7|>=3.8,<3.9.0a0|>=3.9,<3.10.0a0']The following specifications were found to be incompatible with your CUDA driver: 

  - feature:/win-32::__cuda==10.1=0

Your installed CUDA driver is: 10.1

我试着从源码安装,但没有成功:

代码语言:javascript
复制
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.

我还关注了this answer,它对安装的所有包都给出了类似的错误:

代码语言:javascript
复制
Package `geopandas` found in cache
Downloading package . . .
https://download.lfd.uci.edu/pythonlibs/z4tqcw5k/geopandas-0.8.1-py3-none-any.whl
geopandas-0.8.1-py3-none-any.whl
Traceback (most recent call last):
  File "C:\Users\\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

我还关注了this tutorial,下载了5个依赖项的二进制轮子,并通过pip安装了它们。我在安装Fionageopandaspyproj时出现此错误

代码语言:javascript
复制
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.

我正在使用Windows10中的Python3.8.7,我安装了GDAL,并将GDAL_DATAGDAL_DRIVER_PATH设置为环境变量。

EN

回答 2

Stack Overflow用户

发布于 2021-03-23 09:26:39

@duckboycool和@Ken Y-N是对的,降级到Python 3.7成功了!先使用conda conda install python=3.7降级,然后使用conda install geopandas降级

票数 0
EN

Stack Overflow用户

发布于 2021-06-10 00:43:06

您首先需要创建一个环境,然后在新环境中尝试安装Geopandas:

代码语言:javascript
复制
1- conda create -n geo_env
2- conda activate geo_env
3- conda config --env --add channels conda-forge
4- conda config --env --set channel_priority strict
5- conda install python=3 geopandas

和以下视频:https://youtu.be/k-MWeAWEta8 https://geopandas.org/getting_started/install.html

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66755583

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档