I\'m just trying to use the demo code. I run the following in Jupyter Notebook:
from shapely.geometry import shape
Which gives me the following:
@user2977865 and @anothernode are correct in their approach but it may not work for everyone.
By default, shapely
will look for libraries in the DYLD_PATH
.
I had it set to DYLD_LIBRARY_PATH=/usr/local/lib/:/usr/local/mysql/lib/
But these libraries are placed in /usr/lib
.
So I had to modify it as follows:
export DYLD_LIBRARY_PATH=/usr/lib/:/usr/local/mysql/lib/
Bonus note: Ensure that your environment variables have been set by restarting terminal and clearing cache of any IDEs you might be using.