C:\python27\scripts>python task_test.py
Traceback (most recent):
File "task_test.py", line 2, <module>
Import UnitTest
File "C:\Python27\lib\unittest\__init__.py", line +, in <module>
From. Result Import TestResult
File "C:\Python27\lib\unittest\result.py", line 9, <module>
From. Import util
File "C:\Python27\lib\unittest\util.py", line 2, <module>
From collections import Namedtuple, ordereddict
File "C:\Python27\lib\collections.py", line A, in <module>
From keyword import Iskeyword as _iskeyword
Importerror:cannot Import Name Iskeyword
After I installed the lettuce, run lettuce found an error, and then run other scripts also reported this error, replaced someone else's good Python directory, no, re-install it
Python runs the error from keyword import Iskeyword as _iskeyword importerror:cannot import name Iskeyword, indicating that the python environment is broken and has to be re-installed, not yet For specific reasons,