在 vs 代码中安装 geopandas 时出现此错误。我一直在网上寻找它的解决方案,但他们都没有真正解释发生了什么以及如何解决它..
Collecting geopandas
Downloading geopandas-0.7.0-py2.py3-none-any.whl (928 kB)
|████████████████████████████████| 928 kB 726 kB/s
Collecting shapely
Downloading Shapely-1.7.0-cp38-cp38-win32.whl (895 kB)
|████████████████████████████████| 895 kB 437 kB/s
Requirement already satisfied: pandas>=0.23.0 in c:\users\mayank\appdata\local\programs\python\python38-32\lib\site-packages (from geopandas) (1.0.3)
Collecting fiona
Downloading Fiona-1.8.13.post1.tar.gz (1.2 MB)
|████████████████████████████████| 1.2 MB 506 kB/s
ERROR: Command errored out with exit status 1:
command: 'C:\Users\mayank\AppData\Local\Programs\Python\Python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mayank\\AppData\\Local\\Temp\\pip-install-1le2w4at\\fiona\\setup.py'"'"'; __file__='"'"'C:\\Users\\mayank\\AppData\\Local\\Temp\\pip-install-1le2w4at\\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\mayank\AppData\Local\Temp\pip-pip-egg-info-e_ca92eu'
cwd: C:\Users\mayank\AppData\Local\Temp\pip-install-1le2w4at\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.