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.
pip install
it to a virtual environment? If so, you need to activate your virtual environment withsource myvenv/bin/activate
. If you haven't set up a virtual environment yet, you might have installed the module in the wrong directory. Make sure to install the module into the main directory of your project. – Asleyaslopepip
install it, and what is the value ofsys.path
? – Oestrogen/Library/Python/2.7/site-packages/
. How do I check the value of mysys.path
? – Kinesiologysudo
as explained here. However, I would strongly encourage using a virtual environment if you plan on having multiple projects in the future. – Asleyaslopeimport sys; print (sys.path)
– Oestrogen