所以我得到了 numpy、scipy、IPython 和 matplotlib 工作(我可以用“import _ ”导入所有四个。但是,我无法让 pylab 工作。我的印象是,如果我有上述内容,我就可以导入 pylab。我希望我能理解这些错误;他们对我来说就像巴别塔。谁能告诉我怎么了?任何帮助表示赞赏。
我的错误如下:
>>> from pylab import *
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from pylab import *
File "C:\Python32\lib\site-packages\pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "C:\Python32\lib\site-packages\matplotlib\pylab.py", line 222, in <module>
from matplotlib import mpl # pulls in most modules
File "C:\Python32\lib\site-packages\matplotlib\mpl.py", line 3, in <module>
from matplotlib import axes
File "C:\Python32\lib\site-packages\matplotlib\axes.py", line 21, in <module>
import matplotlib.dates as mdates
File "C:\Python32\lib\site-packages\matplotlib\dates.py", line 122, in <module>
from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \
File "C:\Python32\lib\site-packages\dateutil\rrule.py", line 18, in <module>
from six import advance_iterator, integer_types
ImportError: No module named six