0

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

Michael Delgado
  • 13,789
  • 3
  • 29
  • 54
christleu
  • 11
  • 1
  • what do you mean it didn't work? – Michael Delgado Jun 23 '22 at 01:14
  • see [this guide](https://stackoverflow.com/questions/54734667/error-installing-geopandas-a-gdal-api-version-must-be-specified-in-anaconda/72251100#72251100). make sure to install into a new environment with no channel conflicts. if you're installing with anaconda, you might try deleting your installation and installing miniconda. – Michael Delgado Jun 23 '22 at 01:19
  • You can also try installing pyogrio instead of fiona to make it work. `conda install -c conda-forge pyogrio` – martinfleis Jun 23 '22 at 06:42

1 Answers1

0

git issue comment

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

working for me

J07H15H
  • 11
  • 1