我在 Linux 上使用 PyDev 编写代码时遇到了这个奇怪的错误。即使是这样的简单代码也会产生错误
print 'Hello World'
错误就在这里
True
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 62, in <module>
import os
File "/usr/lib/python2.7/os.py", line 398, in <module>
import UserDict
File "/usr/lib/python2.7/UserDict.py", line 83, in <module>
import _abcoll
File "/usr/lib/python2.7/_abcoll.py", line 11, in <module>
from abc import ABCMeta, abstractmethod
ImportError: cannot import name ABCMeta
我的模块名为sample.py。请帮我。谢谢