pyplot无法在python 3.3窗口中运行

时间:2014-08-15 11:10:19

标签: python-3.x matplotlib

>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import matplotlib.pyplot as plt
File "C:\Python33\lib\site-packages\matplotlib\pyplot.py", line 29, in <module>
from matplotlib.figure import Figure, figaspect
File "C:\Python33\lib\site-packages\matplotlib\figure.py", line 36, in <module>
from matplotlib.axes import Axes, SubplotBase, subplot_class_factory
File "C:\Python33\lib\site-packages\matplotlib\axes.py", line 22, in <module>
import matplotlib.dates as _  # <-registers a date unit converter
File "C:\Python33\lib\site-packages\matplotlib\dates.py", line 119, in <module>
from dateutil.rrule import (rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY,
File "C:\Python33\lib\site-packages\dateutil\rrule.py", line 18, in <module>
from six import advance_iterator, integer_types
ImportError: No module named 'six'
>>> 

我试图在Windows 7的python 3.3中导入matplotlib.pyplot,出现上述错误。

1 个答案:

答案 0 :(得分:1)

你错过了一个依赖,即'六'。

你可以通过pip获得它:

pip install six

或从此处:http://www.lfd.uci.edu/~gohlke/pythonlibs/#six