Could not find library geos_c or load any of its variants

Installed shapely using pip, and had the same problem. So I went ahead and installed it like so:

sudo apt-get install libgeos-dev

And it worked. I’m running Ubuntu, so if you’re on Fedora, you should run:

sudo yum install geos-devel

On MACOS you can run:

brew install geos

Leave a Comment