我在我的项目中导入 nltk 库,它给出了以下错误。如果有人有同样的错误,请帮忙。
Traceback (most recent call last):
File "/home/nitai/Dropbox/thesis/PycharmProjects/auto_tagger2/tagger.py", line 4, in <module>
import buildVocab
File "/home/nitai/Dropbox/thesis/PycharmProjects/auto_tagger2/buildVocab.py", line 4, in <module>
import nltk
File "/usr/local/lib/python2.7/dist-packages/nltk/__init__.py", line 126, in <module>
from nltk.stem import *
File "/usr/local/lib/python2.7/dist-packages/nltk/stem/__init__.py", line 29, in <module>
from nltk.stem.snowball import SnowballStemmer
File "/usr/local/lib/python2.7/dist-packages/nltk/stem/snowball.py", line 25, in <module>
from nltk.stem import porter
ImportError: cannot import name porter
我已经安装了所有 nltk 软件包。我不知道。