54

我已经在 x64 Windows7 上成功安装了带有 python 2.6 的 matplotlib。当我尝试导入 matplotlib 时,它显示以下错误。我还按照这个链接安装了 numpy:Installing Numpy on 64bit Windows 7 with Python 2.7.3

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

4

2 回答 2

67

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

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

您需要以下依赖项:需要 numpy、dateutil、pytz、pyparsing、六个

于 2013-08-16T19:31:39.040 回答
56

您可能正在寻找:

pip install python-dateutil
于 2014-09-10T16:16:41.793 回答