OSError geos_c could not be found when Installing Shapely [duplicate] OSError geos_c could not be found when Installing Shapely [duplicate] python python

OSError geos_c could not be found when Installing Shapely [duplicate]


For questions 2-4, you have to have GEOS installed on your system.If you have homebrew you can do the following:

brew install geos

Install homebrew here if you don't have it: http://mxcl.github.com/homebrew/


On Ubuntu, to install GEOS, this worked for me:

$ sudo apt-get install libgeos-dev


With OS X 10.11 (El Capitan) and Boxen, I had do do this:

brew install geossudo mkdir /opt/localsudo ln -s /opt/boxen/homebrew/lib /opt/local/lib

to let Shapely find libgeos_c.dylib in one of the locations it was willing to look for it.