通过终端导入 nltk 时出现这样的错误
[greenz@localhost hadoop]$ python
Python 2.6.6 (r266:84292, Feb 21 2013, 23:54:59)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import nltk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/nltk/__init__.py", line 73, in <module>
from internals import config_java
File "/usr/lib/python2.6/site-packages/nltk/internals.py", line 10, in <module>
import subprocess
File "/usr/lib/python2.6/subprocess.py", line 425, in <module>
import pickle
File "/usr/lib/python2.6/pickle.py", line 165, in <module>
__all__.extend([x for x in dir() if re.match("[A-Z][A-Z0-9_]+$",x)])
AttributeError: 'module' object has no attribute 'match'
>>>
有什么办法解决这个问题吗?