Problem getting geopandas to work with jupyter notebook
See original GitHub issueUsing Anaconda3(64 bit) installed within the last month on a Windows 10 machine, I am having trouble getting jupyter notebook to recognize that geopandas is available. Steps:
- Start Anaconda Navigator
- Create a new environment
- Open the environment in terminal
- use instructions from installation page: 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
If i do just this, start python, and import geopandas, it seems to work. However, if I exit python and install jupyter: conda install python=3 jupyter and start a new jupyter notebook in that environment, I get:
When I list the packages in the environment, I see that jupyter and geopandas should be available:
(geo_env) C:\Users\bob>conda list
packages in environment at C:\Users\bob\Anaconda3\envs\geo_env:
Name Version Build Channel
attrs 19.3.0 py_0 conda-forge
backcall 0.1.0 py_0 conda-forge
bleach 3.1.0 py_0 conda-forge
boost-cpp 1.70.0 h6a4c333_2 conda-forge
bzip2 1.0.8 hfa6e2cd_1 conda-forge
ca-certificates 2019.9.11 hecc5488_0 conda-forge
certifi 2019.6.16 py37_1 conda-forge
cfitsio 3.470 hfa6e2cd_2 conda-forge
click 7.0 py_0 conda-forge
click-plugins 1.1.1 py_0 conda-forge
cligj 0.5.0 py_0 conda-forge
colorama 0.4.1 py_0 conda-forge
curl 7.65.3 h4496350_0 conda-forge
decorator 4.4.0 py_0 conda-forge
defusedxml 0.6.0 py_0 conda-forge
entrypoints 0.3 py37_1000 conda-forge
expat 2.2.5 habb2df7_1003 conda-forge
fiona 1.8.7 py37h3234bc7_0 conda-forge
freetype 2.10.0 h563cfd7_1 conda-forge
freexl 1.0.5 hd288d7e_1002 conda-forge
gdal 2.4.2 py37he6b6c38_4 conda-forge
**geopandas 0.6.1 py_0 conda-forge**
geos 3.7.2 he025d50_2 conda-forge
geotiff 1.5.1 h8f84788_2 conda-forge
gettext 0.19.8.1 hb01d8f6_1002 conda-forge
glib 2.58.3 hc0c2ac7_1002 conda-forge
hdf4 4.2.13 hf8e6fe8_1002 conda-forge
hdf5 1.10.5 nompi_ha405e13_1103 conda-forge
icu 64.2 he025d50_1 conda-forge
importlib_metadata 0.23 py37_0 conda-forge
intel-openmp 2019.4 245
ipykernel 5.1.2 py37h5ca1d4c_0 conda-forge
ipython 7.8.0 py37h5ca1d4c_0 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
ipywidgets 7.5.1 py_0 conda-forge
jedi 0.15.1 py37_0 conda-forge
jinja2 2.10.3 py_0 conda-forge
jpeg 9c hfa6e2cd_1001 conda-forge
jsonschema 3.1.1 py37_0 conda-forge
**jupyter 1.0.0 py_2 conda-forge
jupyter_client 5.3.3 py37_1 conda-forge
jupyter_console 6.0.0 py_0 conda-forge
jupyter_core 4.5.0 py_0 conda-forge**
kealib 1.4.10 hf7dc31f_1005 conda-forge
krb5 1.16.3 hdd46e55_1001 conda-forge
libblas 3.8.0 14_mkl conda-forge
libcblas 3.8.0 14_mkl conda-forge
libclang 9.0.0 h74a9793_1 conda-forge
libcurl 7.65.3 h4496350_0 conda-forge
libffi 3.2.1 h6538335_1006 conda-forge
libgdal 2.4.2 h2bdb96c_4 conda-forge
libiconv 1.15 hfa6e2cd_1005 conda-forge
libkml 1.3.0 h4ece8bf_1010 conda-forge
liblapack 3.8.0 14_mkl conda-forge
libnetcdf 4.6.2 h376842a_1003 conda-forge
libpng 1.6.37 h7602738_0 conda-forge
libpq 11.5 hb0bdaea_1 conda-forge
libsodium 1.0.17 h2fa13f4_0 conda-forge
libspatialindex 1.8.5 he025d50_4 conda-forge
libspatialite 4.3.0a h832c139_1029 conda-forge
libssh2 1.8.2 h642c060_2 conda-forge
libtiff 4.0.10 h6512ee2_1003 conda-forge
libxml2 2.9.9 h9ce36c8_5 conda-forge
lz4-c 1.8.3 he025d50_1001 conda-forge
m2w64-expat 2.1.1 2
m2w64-gcc-libgfortran 5.3.0 6
m2w64-gcc-libs 5.3.0 7
m2w64-gcc-libs-core 5.3.0 7
m2w64-gettext 0.19.7 2
m2w64-gmp 6.1.0 2
m2w64-libiconv 1.14 6
m2w64-libwinpthread-git 5.0.0.4634.697f757 2
m2w64-xz 5.2.2 2
markupsafe 1.1.1 py37hfa6e2cd_0 conda-forge
mistune 0.8.4 py37hfa6e2cd_1000 conda-forge
mkl 2019.4 245
more-itertools 7.2.0 py_0 conda-forge
msys2-conda-epoch 20160418 1
munch 2.3.2 py_0 conda-forge
nbconvert 5.6.0 py37_1 conda-forge
nbformat 4.4.0 py_1 conda-forge
notebook 6.0.1 py37_0 conda-forge
numpy 1.17.1 py37hc71023c_0 conda-forge
openjpeg 2.3.1 hb24c2e3_1 conda-forge
openssl 1.1.1c hfa6e2cd_0 conda-forge
pandas 0.25.1 py37he350917_0 conda-forge
pandoc 2.7.3 0 conda-forge
pandocfilters 1.4.2 py_1 conda-forge
parso 0.5.1 py_0 conda-forge
pcre 8.43 h6538335_0 conda-forge
pickleshare 0.7.5 py37_1000 conda-forge
pip 19.3 py37_0 conda-forge
poppler 0.67.0 h92819f6_7 conda-forge
poppler-data 0.4.9 1 conda-forge
postgresql 11.5 h06f7779_1 conda-forge
proj4 6.1.0 hc2d0af5_2 conda-forge
prometheus_client 0.7.1 py_0 conda-forge
prompt_toolkit 2.0.10 py_0 conda-forge
pygments 2.4.2 py_0 conda-forge
pyproj 2.2.1 py37h3f740ce_0 conda-forge
pyqt 5.12.3 py37h6538335_0 conda-forge
pyqt5-sip 4.19.18 pypi_0 pypi
pyqtwebengine 5.12.1 pypi_0 pypi
pyrsistent 0.15.4 py37hfa6e2cd_0 conda-forge
python 3.7.3 h510b542_1 conda-forge
python-dateutil 2.8.0 py_0 conda-forge
pytz 2019.3 py_0 conda-forge
pywin32 224 py37hfa6e2cd_1000 conda-forge
pywinpty 0.5.5 py37_1000 conda-forge
pyzmq 18.1.0 py37h16f9016_0 conda-forge
qt 5.12.5 h7ef1ec2_0 conda-forge
qtconsole 4.5.5 py_0 conda-forge
rtree 0.8.3 py37h21ff451_1002 conda-forge
send2trash 1.5.0 py_0 conda-forge
setuptools 41.4.0 py37_0 conda-forge
shapely 1.6.4 py37ha35856d_1006 conda-forge
six 1.12.0 py37_1000 conda-forge
sqlite 3.30.1 hfa6e2cd_0 conda-forge
terminado 0.8.2 py37_0 conda-forge
testpath 0.4.2 py_1001 conda-forge
tk 8.6.9 hfa6e2cd_1003 conda-forge
tornado 6.0.3 py37hfa6e2cd_0 conda-forge
traitlets 4.3.3 py37_0 conda-forge
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_0
wcwidth 0.1.7 py_1 conda-forge
webencodings 0.5.1 py_1 conda-forge
wheel 0.33.6 py37_0 conda-forge
widgetsnbextension 3.5.1 py37_0 conda-forge
wincertstore 0.2 py37_1002 conda-forge
winpty 0.4.3 4 conda-forge
xerces-c 3.2.2 h6538335_1004 conda-forge
xz 5.2.4 h2fa13f4_1001 conda-forge
zeromq 4.3.2 h6538335_2 conda-forge
zipp 0.6.0 py_0 conda-forge
zlib 1.2.11 h2fa13f4_1006 conda-forge
zstd 1.4.0 hd8a0e53_0 conda-forge
(geo_env) C:\Users\bob>
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Fastest way to install Geopandas in jupyter notebook on ...
Running Geopandas in Jupyter Notebook. ... First way- Using Anaconda Navigator. Open Anaconda Navigator,go to Environments section then select the environment,in ...
Read more >How to install Geo Pandas package in Jupyter Notebook in ...
First of all, in an anaconda prompt, start by cleaning your environment by removing the packages that got installed by pip. To do...
Read more >Installation — GeoPandas 0.12.2+0.gefcb367.dirty ...
To install GeoPandas and all its dependencies, we recommend to use the conda package manager. This can be obtained by installing the Anaconda...
Read more >how to use geopandas with python and jupyter notebook
hello there, in this video, we get started with our first run of geopandas using jupyter notebookcheckout my python beginner courses ...
Read more >How to install Python - Geopandas in Windows on a Conda ...
Geopandas is an amazing library for spatial analysis since in ... we are always in the search of new ways to get Python...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After many hours and none of the solutions working, even this one above, I found this tutorial:
https://www.youtube.com/watch?v=LNPETGKAe0c
I’m posting here so you guys don’t lose as much time of life as I did in this problem
Try installing your geo_env kernel to Jupyter:
Then you should be able to switch to it in jypyter notebook. I will close this issue as it is not issue of geopandas apparently. We can continue discussion even in closed issue.