ImportError:matplotlib需要dateutil

发布于 2021-01-29 18:20:40

我已经在x64 Windows7上使用python2.6成功安装了matplotlib。当我尝试导入matplotlib时,它显示以下错误。我还通过以下链接安装了numpy:使用Python2.7.3在64位Windows
7上安装Numpy

import matplotlib.pyplot as plt

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    import matplotlib.pyplot as plt
  File "C:\Python26\Lib\site-packages\matplotlib\__init__.py", line 110, in <module>
    raise ImportError("matplotlib requires dateutil")
ImportError: matplotlib requires dateutil

我该如何运作?

我从http://matplotlib.org/downloads.html安装了matplotlib-1.3.0.win-
amd64-py2.6.exe

关注者
0
被浏览
51
1 个回答
  • 面试哥
    面试哥 2021-01-29
    为面试而生,有面试问题,就找面试哥。

    以下是可以在Windows上安装的程序的列表:

    http://www.lfd.uci.edu/~gohlke/pythonlibs/

    并且您将需要以下依赖项:需要numpy,dateutil,pytz,pyparsing,六个



知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看