Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when importing geopandas OSError: Could not find lib c or load any of its variants []

I'm using Spyder with Anaconda and since MacOS last update (Big Sur 11.0.1), when doing import geopandas, I get the following error:

OSError: Could not find lib c or load any of its variants [].

There are several subjects on the matter (particularly this one and this one), that mainly recommends to reset the environment variable DYLD_FALLBACK_LIBRARY_PATH by putting in the Terminal:

export DYLD_FALLBACK_LIBRARY_PATH=$(HOME)/lib:/usr/local/lib:/lib:/usr/lib

However, here is what I get:

-bash: HOME: command not found

A brew or pip install didn't fix the problem either.

Does anyone have an idea on how I can fix this? Am I suppose to replace $(HOME) by something?

Many thanks!

like image 392
clematologie Avatar asked Nov 13 '20 13:11

clematologie


1 Answers

I had the same error and fixed it just by reinstalling Shapely:

pip install --upgrade --force-reinstall shapely
like image 200
Kyle Barron Avatar answered Oct 24 '22 14:10

Kyle Barron