无法在Anaconda环境中安装Geopandas [英] Can't install geopandas in Anaconda environment
问题描述
我正在尝试使用Anaconda Prompt安装 geopandas
软件包,但是在我使用 conda安装geopandas
之后,发生了意外的事情:
I am trying to install the geopandas
package with Anaconda Prompt, but after I use conda install geopandas
an unexpected thing happened:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages
此后,它继续搜索冲突,但是数小时过去而没有完成.最后,我仍然不能使用 geopandas
.
After this, it proceeds to search for conflicts, but hours pass without finishing. In the end, I still cannot use geopandas
.
我还尝试过在不同的虚拟环境中安装 geopandas
,它可以工作,但我不知道如何在Jupyter Notebooks中使用该环境.
I have also tried installing geopandas
in a different virtual environment and it works but I do not know how to use the environment in Jupyter Notebooks.
我想知道,如何在没有单独环境的情况下安装 geopandas
?
I would like to know, how can install geopandas
without a separate environment?
或者,或者,在单独的环境中安装后,如何在Jupyter Notebook中使用 geopandas
?
Or, alternatively, how can I use geopandas
in Jupyter Notebooks after install it in a separate environment?
推荐答案
You can install geopandas with pip, however, geopandas requires other dependencies (such as pandas, fiona, shapely, pyproj, rtree). You need to make sure that they are properly installed. After that you should be able to use them in jupyter with a simple import geopandas
.
这篇关于无法在Anaconda环境中安装Geopandas的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!