Python无法导入pylab

时间:2015-02-08 01:40:14

标签: python matplotlib

我正在尝试在python中导入Pylab,但我总是得到以下错误,

from pylab import *

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pylab.py", line 1, in <module>
    from matplotlib.pylab import *
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/pylab.py", line 226, in <module>
    import matplotlib.finance
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/finance.py", line 21, in <module>
    from matplotlib.dates import date2num
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/dates.py", line 119, in <module>
    from dateutil.rrule import (rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY,
  File "/Library/Python/2.7/site-packages/dateutil/rrule.py", line 14, in <module>
    from six.moves import _thread
ImportError: cannot import name _thread

我正在使用mac OS。请提出任何建议!

0 个答案:

没有答案