Daniela
Daniela

Reputation: 911

Shapely import error: No module named 'shapely'

I've installed shapely with pip install shapely and importing it as from shapely.geometry import Point. I get this error:

  from shapely.geometry import Point
ModuleNotFoundError: No module named 'shapely'

I'm n MacOS High Sierra. All other installed python libraries work like a charm. I'm new to Python so forgive me in advance. I've read several similar questions (like this one) but none seemed to solve my problem.

Upvotes: 11

Views: 51590

Answers (2)

Khaled Al Halabee
Khaled Al Halabee

Reputation: 89

I tried this command and it was efficient.

conda install -c conda-forge shapely

Upvotes: 0

yugandhara
yugandhara

Reputation: 121

Run the following command in activated virtualenv:

pip install shapely

Upvotes: 12

Related Questions