Skip to content Skip to sidebar Skip to footer

Cannot Import Shapely.geometry In Python

I am trying to import Multipoint from shapely.geometry in IPython notebook. When I do 'from shapely.geometry import MultiPoint', I get the error 'No module named shapely.geometry'.

Solution 1:

I had this OSError that I found in your output:

Could notfind library geos_c orload any of its variants ['libgeos_c.so.1', 'libgeos_c.so']

To solve that I installed the lib-geos, by running:

$ sudo apt-get install libgeos-dev

Post a Comment for "Cannot Import Shapely.geometry In Python"