所以我得到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
答案 0 :(得分:2)
答案 1 :(得分:0)
您可以通过安装Python 2.x来解决您的问题。图形库Matplotlib不支持Python 3.x. Few libraries do
虽然版本3.0在四年前发布,但大多数用户使用Python 2.x更好,因为社区尚未普遍采用3.x. Python开发人员say so themselves。是的,这很令人尴尬:\