错误:命令出错,退出状态为 1.安装地理熊猫时



我正在使用win10并尝试安装geopandas:

C:Users61432>pip install geopandas
Collecting geopandas
Using cached geopandas-0.7.0-py2.py3-none-any.whl (928 kB)
Requirement already satisfied: shapely in c:users61432anaconda3libsite-packages (from geopandas) (1.7.0)
Collecting fiona
Using cached Fiona-1.8.13.post1.tar.gz (1.2 MB)
ERROR: Command errored out with exit status 1:
command: 'C:Users61432anaconda3python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\61432\AppData\Local\Temp\pip-install-xgic7o3y\fiona\setup.py'"'"'; __file__='"'"'C:\Users\61432\AppData\Local\Temp\pip-install-xgic7o3y\fiona\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:Users61432AppDataLocalTemppip-install-xgic7o3yfionapip-egg-info'
cwd: C:Users61432AppDataLocalTemppip-install-xgic7o3yfiona
Complete output (1 lines):
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.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  1. 首先从 https://www.lfd.uci.edu/~gohlke/pythonlibs/下载软件包 (GDAL,FIONA(放入您正在处理项目的file_path

  2. 第二次安装软件包 cd file_path>点安装 GDAL 即(数据(C:\Users\mourinho\project> pip install GDAL-3.2.1-cp39-cp39-win_amd64.whl 然后 点安装菲奥娜 即(数据(C:\Users\mourinho\project> pip install Fiona-1.8.18-cp39-cp39-win_amd64.whl

  3. 点安装大熊猫

最新更新