Reputation: 25
How do I make geopandas work? I have a new environment for geopandas. Before that I reinstalled anaconda. Pythom 3.8.5 is included and no other python is installed. When I open jupiter notebook in the specific geo_env
with the packages and import geopandsa as gpd
it is not working - missing package
. I know this topic for geopandas is quite well discussed but I tried all suggestions - different commands "pip
"; conda
; conda-forge
; different versions of the files gdal
, diona
, shapely
etc. (because it's written sometimes 32 bit works on 64 bit - my option).
I work with windows 10/64Bit
Upvotes: 1
Views: 716
Reputation: 375
I think you can try:
$ conda install -c anaconda pip
$ pip install geopandas
$ pip install Fiona
Upvotes: 1
Reputation: 148
From Error installing geopandas:" A GDAL API version must be specified " in Anaconda. Your question has been answered well in this thread.
To install gdal, I followed the following steps:
downloaded the version that satisfies my computer (64 bit) from https://www.lfd.uci.edu/~gohlke/pythonlibs/ . The file was GDAL-3.1.4-cp37-cp37m-win_amd64.whl
Put the file in a folder on the desktop.
From cmd, i moved to that directory and executed python -m pip install GDAL-3.1.4-cp37-cp37m-win_amd64.whl
This is followed by installing fiona the same way: python -m pip install Fiona-1.8.18-cp37-cp37m-win_amd64.whl
For shapely, i executed conda install -c conda-forge shapely
After that, i was able to install keplergl as usual: pip install keplergl
install descartes: conda install -c conda-forge descartes (or python -m pip install descartes).
In this way, i didn't have to play around with the 'Environmental Variables' as this may affect other programs Cheers..
Upvotes: 0