geopandas read_file function causes ImportError

3k Views Asked by At

I just got a new computer and after downloading the newest version of the anaconda distribution I tried to install geopandas and run my script. However, the gpd.read_file command causes an ImportError. I have been trying to reinstall everything but nothing changed. Does anybody know how to figure this out?

import geopandas as gpd

path = "C:/someshapefile.shp"

gpd.read_file(path)
ImportError: The 'read_file' function requires the 'pyogrio' or
'fiona' package, but neither is installed or imports correctly. 

Importing fiona resulted in:

DLL load failed while importing ogrext: The specified module could not be found.

Importing pyogrio resulted in:

No module named 'pyogrio'

Just installing fiona manually like this:

conda install -c conda-forge fiona

did unfortunately not work for me.

Thanks a lot! CM

1

There are 1 best solutions below

0
J07H15H On

git issue comment

python -m pip install git+https://github.com/Toblerity/Fiona.git

working for me