qqs1402654893
qqs1402654893
采纳率50%
2015-05-18 13:35 阅读 2.6k

在python 2.7shell中出现如下错误

import matplotlib
import matplotlib.pyplot as plt

Traceback (most recent call last):
File "", line 1, in
import matplotlib.pyplot as plt
File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 29, in
from matplotlib.figure import Figure, figaspect
File "C:\Python27\lib\site-packages\matplotlib\figure.py", line 36, in
from matplotlib.axes import Axes, SubplotBase, subplot_class_factory
File "C:\Python27\lib\site-packages\matplotlib\axes.py", line 20, in
import matplotlib.dates as _ # <-registers a date unit converter
File "C:\Python27\lib\site-packages\matplotlib\dates.py", line 119, in
from dateutil.rrule import (rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY,
File "C:\Python27\lib\dateutil\rrule.py", line 16, in
from six.moves import _thread
ImportError: cannot import name _thread

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

3条回答 默认 最新

  • 已采纳
    oyljerry oyljerry 2015-05-18 14:51

    这个模块没有装好吧?

    点赞 评论 复制链接分享
  • wgw335363240 O溺水的鱼0 2015-05-19 03:06

    ImportError: cannot import name _thread

    模块没有安装,重新安装下,或者安装好的模块没有放对位置,看看当前使用的python使用的lib位置。

    点赞 评论 复制链接分享
  • muier 茶木牟夕由 2015-05-20 04:39

    把这个卸了,再重新安一遍

    点赞 评论 复制链接分享

相关推荐