我已经尝试了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.1conda 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安装了它们。我在安装Fiona、geopandas、pyproj时出现此错误
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_DATA和GDAL_DRIVER_PATH设置为环境变量。
发布于 2021-03-23 09:26:39
@duckboycool和@Ken Y-N是对的,降级到Python 3.7成功了!先使用conda conda install python=3.7降级,然后使用conda install geopandas降级
发布于 2021-06-10 00:43:06
您首先需要创建一个环境,然后在新环境中尝试安装Geopandas:
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
https://stackoverflow.com/questions/66755583
复制相似问题