【发布时间】:2013-11-22 08:00:31
【问题描述】:
我想要一些python的数字模块。我从 enthought 安装了机盖,它应该具有我需要的所有必要模块。例如:matplotlib.pyplot 和 scipy。 安装后,我尝试导入模块,我收到以下错误。 我在我的 mac OS X 中运行了 python2.7。我是否必须更改我的 pythonPath 或其他东西才能完成这项工作,我在网上搜索,但找不到明确的答案。
import matplotlib.pyplot as plt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named matplotlib.pyplot
import scipy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named scipy
谢谢
【问题讨论】:
-
当你输入
which python时你的终端会说什么?