我正在尝试安装geopandas。如果我在Spyder中使用函数“ import geopandas”,则会收到错误消息“ ModuleNotFoundError:没有名为'geopandas'的模块”
我在线搜索,发现必须从Windows提示符下安装它。所以,我尝试了这个: “ pip install geopandas”。开始收集fiona时出现错误:
ERROR: Command errored out with exit status 1:
command: 'c:\users\eleon\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\eleon\\AppData\\Local\\Temp\\pip-install-9xsna2kr\\fiona\\setup.py'"'"'; __file__='"'"'C:\\Users\\eleon\\AppData\\Local\\Temp\\pip-install-9xsna2kr\\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 pip-egg-info
cwd: C:\Users\eleon\AppData\Local\Temp\pip-install-9xsna2kr\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.
----------------------------------------
错误:命令错误,退出状态为1:python setup.py egg_info检查日志以获取完整的命令输出。
有人可以帮我吗?
提前谢谢!