【问题标题】:pip install geopandas: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command outputpip install geopandas:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整的命令输出
【发布时间】:2021-09-03 22:40:41
【问题描述】:

我尝试在 Jupyter 笔记本上使用 pip install geopandas 安装 geopandas 包。但是,我收到错误 ERROR: Command errored out with exit status 1: python setup.py egg_info 检查日志以获取完整的命令输出。
我还使用pip install gevent --pre 安装了gevent,我当前的python 版本是3.8.5。但是,还没有任何效果。

【问题讨论】:

    标签: python geopandas


    【解决方案1】:

    我在尝试pip install geopandas 时遇到了同样的问题。一些帖子建议以精确的顺​​序安装依赖项,但由于fiona,它们都失败了(对我来说)。

    最终选择安装anaconda并创建一个虚拟环境,通过conda安装geopandas

    创建虚拟环境

    conda create -n geo_env
    

    然后激活你的环境:

    activate geo_env
    

    安装 Geopandas

    conda install --channel conda-forge geopandas
    

    另外,请确保拥有jupyternb_conda_kernels 以及ipykernel

    备选 如果你不想安装anaconda,你可以尝试和上面一样的过程,即

    1. 创建虚拟环境(参见https://docs.python.org/3/library/venv.html
    2. pip install geopandas

    【讨论】:

    猜你喜欢
    • 2020-03-03
    • 1970-01-01
    • 2020-02-17
    • 2021-03-31
    • 1970-01-01
    • 2021-01-04
    • 2020-04-07
    • 2020-04-12
    • 2021-04-15
    相关资源
    最近更新 更多