导入python模块的麻烦

时间:2015-05-22 12:20:43

标签: python import

我正在尝试导入我之前安装的Python包,但在尝试导入时我一直收到此错误

"ImportError: No module named gdal"

在附加的图像中(在链接中:P),您可以看到安装了python-gdal和python-numpy包。我也附加了python输出。

enter image description here enter image description here

P.S =我正在使用Ubuntu并从终端运行python。

1 个答案:

答案 0 :(得分:3)

您可能已安装了Python的非Ubuntu版本 - Anaconda - 但这些软件包已安装到系统Python中。您应该删除Anaconda,和/或将系统Python明确地运行为/usr/bin/python