ImportError: matplotlib requires dateutil

PythonMatplotlibPython Dateutil

Python Problem Overview


I have successfully installed matplotlib with python 2.6 on x64 Windows7. When I try to import matplotlib, it shows the following error. I have also installed numpy following this link: https://stackoverflow.com/questions/11200137/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

How can I make it work?

I installed matplotlib-1.3.0.win-amd64-py2.6.exe from <http://matplotlib.org/downloads.html>

Python Solutions


Solution 1 - Python

Here's a list of the programs you can install on windows:

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

And you'll need the following dependencies: Requires numpy, dateutil, pytz, pyparsing, six

Solution 2 - Python

You're probably looking for:

pip install python-dateutil

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser2690469View Question on Stackoverflow
Solution 1 - PythontakrliuView Answer on Stackoverflow
Solution 2 - PythonDavid WoleverView Answer on Stackoverflow