Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use the Python 3 version of matplotlib module. I am getting errors about dateutil not being present even though I have installed this package. Shouldn't

import dateutil 

work after installing the above package? I am using Ubuntu 14.04 in case it matters.

share|improve this question
Using sudo apt-get install python3-dateutil – user1128171 May 2 '14 at 12:49
No, not using a virtualenv – user1128171 May 2 '14 at 12:53
I uninstalled dateutil and reinstalled it and it is working now. Odd – user1128171 May 2 '14 at 12:58
up vote 1 down vote accepted

First make sure that you are not trying to import the module after activating the virtualenv. If you have your virtualenv activated and didn't supply the argument --system-site-packages while creating it, the module won't be available to you to import in virtualenv.

If you are not using a virtualenv and still unable to import the module, then make sure that you are using the Python 3 interpreter and not the Python 2 interpreter. Since you installed the package for python3, it won't be available to import in python2 interpreter. Next try to purge and reinstall the module using:

sudo apt-get purge python3-dateutil
sudo apt-get install python3-dateutil

Purging the package and reinstalling it should fix any issues which was restricting to import the module.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.