错误:命令错误,退出状态为1。安装geopandas时

问题描述 投票:0回答:1

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

C:\Users\61432>pip install geopandas

Collecting geopandas
  Using cached geopandas-0.7.0-py2.py3-none-any.whl (928 kB)
Requirement already satisfied: shapely in c:\users\61432\anaconda3\lib\site-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:\Users\61432\anaconda3\python.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('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\61432\AppData\Local\Temp\pip-install-xgic7o3y\fiona\pip-egg-info'
         cwd: C:\Users\61432\AppData\Local\Temp\pip-install-xgic7o3y\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.
python python-module
1个回答
0
投票

我在蟒蛇中遇到相同的错误。这就是我所做的conda config-添加通道conda-forge康达安装geopandas

以上无济于事。我不确定是否需要为此创建环境。

我已经重新安装了蟒蛇。康达-V康达4.8.3

让我知道是否有人可以提供帮助。

conda安装geopandas收集包元数据(current_repodata.json):完成求解环境:最初的冻结求解失败。使用灵活的解决方法重试。解决环境:由于current_repodata.json中的repodata失败,将重试下一个repodata源。收集包元数据(repodata.json):已完成求解环境:最初的冻结求解失败。使用灵活的解决方法重试。解决环境:-发现冲突!寻找不相容的套件。这可能需要几分钟。按CTRL-C中止。

© www.soinside.com 2019 - 2024. All rights reserved.