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 回答1: 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. 回答2: Just run this command. It worked like a charm! $ cp /usr/bin/python2.7 $(which python2.7) This just happened to me after the 14.10 update, and it seems to be because my virtual environments