无法安装Geopandas

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

我目前正在使用Python 3.7.6与Anaconda和Jupyter Notebook.I used to work with geopandas like 1 week ago with no problems.Then I tried to install osmnx and it took forever, more than 10 hours, so I interrupted it.I had continue to work other stuff, then I tried installation several more times then I get trac issue I couldn't fix, so I re-institute Anaconda 2 days ago. 我不得不继续处理其他事情,然后我又试着安装了几次,然后我得到了一个我无法解决的trac问题,所以我2天前重新安装了Anaconda。此后我试着安装geopandas,我就遇到了这个问题,我运行代码,却始终无法完成安装,10多个小时,还中断了。

我尝试了下面的两个代码。

conda install --channel conda-forge geopandas

!conda install geopandas

我成功地安装了其他模块,如Folium,没有问题。conda install -c conda-forge folium

先谢谢你

python install conda geopandas forge
1个回答
0
投票

geopandas和OSMnx都有依赖性,会导致安装复杂。在一个干净的、隔离的conda环境中安装最简单。

安装 geopandas。

conda config --prepend channels conda-forge
conda create -n gpd --strict-channel-priority geopandas

安装OSMnx 其文件:

conda config --prepend channels conda-forge
conda create -n ox --strict-channel-priority osmnx
© www.soinside.com 2019 - 2024. All rights reserved.