Python ImportError for strptime in spyder for windows 7
问题 I can't for the life of me figure out what is causing this very odd error. I am running a script in python 2.7 in the spyder IDE for windows 7. It uses datetime.datetime.strptime at one point. I can run the code once and it seems fine (although I haven't finished debugging, so exceptions have been raised and it hasn't completed normally yet), then if I try running it again I get the following (end of traceback only is shown): File "C:\path\to\test.py", line 220, in std_imp self.data[key]