Search code examples
pythonubuntu-12.04ubuntu-14.04

ImportError: No module named datetime


When I upgrade my Ubuntu into 14.04 from 12.04, this time I get this error:

 ImportError: No module named datetime

Solution

  • This happened to me when I created a virtualenv and then upgraded from 12.04 to 14.04.

    I had to delete my virtualenv and recreate it, and after doing that, everything worked again.