在 Spyder 5.1.5 上安装 GeoPandas

Installing GeoPandas on Spyder 5.1.5

自从将 Spyder 更新到 5.1.5 版本后,我无法安装 GeoPandas。我试过以下方法:

conda install geopandas

conda install --channel conda-forge geopandas

conda install -c conda-forge geopandas

conda create -n geo_env
conda activate geo_env
conda config --env --add channels conda-forge
conda config --env --set channel_priority strict
conda install python=3 geopandas

和 none 似乎有效。我还安装了所有必要的依赖项,但 Fiona 除外(returns 同样的安装问题)。

经过一些研究和 ,我想出了一个解决方案。肯定是我之前更新Spyder到5.1.5的时候出错了,虽然我卸载重装了很多次Anaconda,但是直到我通过Anaconda Prompt删除了Spyder,GeoPandas才会安装。

conda remove spyder

conda remove python-language-server(可能return错误但不是问题)

conda update anaconda(可能return错误但不是问题)

conda install spyder=5.1.5

conda install pandas

conda install geopandas

conda install openpyxl(必须重新安装)