导入NLTK我想在我的Python代码导入NLTK
,我得到这个错误:无法在NetBeans
Traceback (most recent call last):
File "/home/afs/NetBeansProjects/NER/getNE_followers.py", line 7, in <module>
import nltk
ImportError: No module named nltk
我使用NetBeans: 6.7.1
,Python 2.6 NLTK
。 我的NLTK模块安装在/usr/local/lib/python2.6/dist-packages/nltk/
中,我在Netbeans
的Python
路径中添加了此项。
我在这里错过了什么?
在此先感谢。