3

Shapely Import problem Related to MAC OS X

I installed shapely using sudo apt-get install python-shapely.

I am using Python 2.7.8 |Anaconda 2.1.0 (64-bit)| with ubuntu 14.04 LTS (64 bit)

After successful installation, when I try to import it from ipython it gives me an import error. ImportError: No module named shapely

How do I fix this?

Community
  • 1
  • 1
Sounak
  • 4,803
  • 7
  • 30
  • 48

1 Answers1

4

That happens because apt-get installs packages to the system default python, under /usr/python2.7/lib/site-packages. Anaconda has its own package manager, conda, which you might want to use in your case. conda install shapely should do the trick.

Andrey Sobolev
  • 12,353
  • 3
  • 48
  • 52