ImportError: No module named datetime

akbsmile picture akbsmile · Sep 25, 2014 · Viewed 35.4k times · Source

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

 ImportError: No module named datetime

Answer

erjiang picture erjiang · Oct 22, 2014

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.