Ubuntu,Anaconda:无法导入python shapely包

时间:2015-05-20 11:20:31

标签: python ubuntu importerror anaconda shapely

Shapely Import problem Related to MAC OS X

我使用sudo apt-get install python-shapely进行了整齐的安装。

我将Python 2.7.8 |Anaconda 2.1.0 (64-bit)|ubuntu 14.04 LTS (64 bit)

一起使用

安装成功后,当我尝试从ipython导入时,它会导致导入错误。 ImportError: No module named shapely

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:3)

这是因为apt-get将软件包安装到/usr/python2.7/lib/site-packages下的系统默认python中。 Anaconda有自己的包管理器conda,您可能希望在您的情况下使用它。 conda install shapely应该做到这一点。