gpt4 book ai didi

python - 无法安装geopandas

转载 作者:行者123 更新时间:2023-12-05 04:51:51 25 4
gpt4 key购买 nike

geopandas的documentation中的所有安装方法我都试过了没有任何效果。

conda install geopandas 给出

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 创建了一个新环境:

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

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

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 ,这会为所有安装的软件包提供类似的错误:

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

时遇到此错误
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.

我在我的 venv 中使用 Windows 10 中的 Python 3.8.7。我安装了 GDAL 并将 GDAL_DATAGDAL_DRIVER_PATH 设置为环境变量。

最佳答案

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

关于python - 无法安装geopandas,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66755583/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com