我不能在Python中安装菲奥娜包

2024-03-29 09:22:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试pip安装geopandas,每次尝试时,都会弹出以下错误:

Collecting fiona
  Using cached Fiona-1.8.13.post1.tar.gz (1.2 MB)
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\hp\appdata\local\programs\python\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-r8dvuzzr\\fiona\\setup.py'"'"'; __file__='"'"'C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-r8dvuzzr\\fiona\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\HP\AppData\Local\Temp\pip-pip-egg-info-cl_m3849'
         cwd: C:\Users\HP\AppData\Local\Temp\pip-install-r8dvuzzr\fiona\
    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.

我使用Python3.7.7在VSCode中完成这项工作

我应该如何提供gdal配置的路径,或者我应该做什么来解决这个问题


Tags: installpippyinfoegglocalsetupusers