Import Error: "No module named 'dateutil' "

Abhinaba picture Abhinaba · Dec 15, 2017 · Viewed 10.5k times · Source

I installed Python-Dateutil package, but when i import it in my script , it's throwing error:

import dateutil ImportError: No module named 'dateutil'

when i checked the lib folder, dateutil.eggs files are there , because of this i can not run matplotlib module. Please provide a solution.

Answer

Gayan Weerakutti picture Gayan Weerakutti · Nov 20, 2018

Python 3+

pip3 install python-dateutil

Python 2

pip install python-dateutil