Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AttributeError: module 'fiona' has no attribute '_loading'

I am new in python and I am trying to work with geopandas library. I have already installed the package using:

conda install -c conda-forge geopandas

but when I try to import the library, I get back: ERROR SCREENSHOT

But searching in my computer directories I have already installed fiona and inside this directory, there is a file "_loading.py"

Isn't it strange that I have both packages installed and I have this error? Thank you in advance

like image 614
Giorgos Tsim Avatar asked Nov 14 '22 22:11

Giorgos Tsim


2 Answers

If you are using Jupyter Notebook or JupyterLab, you may just need to restart the kernel for the environment.

like image 50
Wilson Sauthoff Avatar answered Dec 10 '22 07:12

Wilson Sauthoff


First, install python=3.7 then download the related library with the same version of python from here. https://www.lfd.uci.edu/~gohlke/pythonlibs. install all of them using pip

like image 34
MD Gazuruddin Avatar answered Dec 10 '22 07:12

MD Gazuruddin