C:Python27Scripts>python task_test.py
Traceback (most recent call last):
File "task_test.py", line 2, in <module>
import unittest
File "C:Python27libunittest\__init__.py", line 58, in <module>
from .result import TestResult
File "C:Python27libunittest
esult.py", line 9, in <module>
from . import util
File "C:Python27libunittestutil.py", line 2, in <module>
from collections import namedtuple, OrderedDict
File "C:Python27libcollections.py", line 22, in <module>
from keyword import iskeyword as _iskeyword
ImportError: cannot import name iskeyword
我在装lettuce之后,运行lettuce发现报错,再然后运行其他脚本也报这个错,替换了别人的好用的python目录,也不行,重装就好了