安装过程中的 Geopandas 错误消息

Geopandas error message during installation

我正在尝试安装 geopandas。我使用了我找不到的代码,但我不断收到错误消息。我已经安装了 geopy,但无法安装 geopandas

我在 运行 安装 anaconda 提示时得到的结果:

我也尝试过使用 %pip install geopandas --user

安装
Collecting geopandas
  Using cached geopandas-0.8.1-py2.py3-none-any.whl (962 kB)
Collecting pyproj>=2.2.0
  Using cached pyproj-2.6.1.post1-cp38-cp38-win32.whl (15.7 MB)
Collecting shapely
  Using cached Shapely-1.7.1-cp38-cp38-win32.whl (894 kB)
Requirement already satisfied: pandas>=0.23.0 in c:\users\fejiro\anaconda3\lib\site-packages (from geopandas) (1.0.5)
Collecting fiona
  Using cached Fiona-1.8.17.tar.gz (1.3 MB)
Note: you may need to restart the kernel to use updated packages.
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\fejiro\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\fejiro\AppData\Local\Temp\pip-install-q86d5ghj\fiona\setup.py'"'"'; __file__='"'"'C:\Users\fejiro\AppData\Local\Temp\pip-install-q86d5ghj\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\fejiro\AppData\Local\Temp\pip-pip-egg-info-64u_nnsk'
         cwd: C:\Users\fejiro\AppData\Local\Temp\pip-install-q86d5ghj\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.

谁能告诉我该怎么做?

对于更复杂的包,最好使用 Anaconda 发行版。使用 install anaconda 然后为项目创建环境。之后,您可以使用 conda-forge 来解决所有兼容性问题