简体   繁体   中英

Installing geopandas

I've tried installing geopandas, but I keep running into issues. I've followed the instructions here: https://geopandas.org/install.htm

Trying conda install geopandas in my terminal produced a number of conflicts. Similarly with conda install --channel conda-forge geopandas . I just tried

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

as instructed on the site, and it seemed to install properly, that is I saw the same sort of prompts and output as outlined in the video here .

But when I try import geopandas as gpd in my jupyter notebook, I get the error "No module named 'geopandas'".

I'm not super comfortable with the terminal and doing under-the-hood type coding, and I'm not sure how to troubleshoot this. It seems that the latter instructions for the install created a new environment? How can I get Anaconda (or my jupyter notebook) to locate this environment?

Any help is much appreciated.

I'm not quite sure the issues with the conda install. I was able to install it properly in a new environment in Anaconda-Navigator, but still unable to access it through a jupyter notebook.

However I tried pip install geopandas instead of conda install, and that seems to have worked perfectly. Funny, since pip install seemed to be discouraged on the geopandas doc site . Either way, I seem to have geopandas installed properly now!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM