【发布时间】:2019-03-01 03:30:44
【问题描述】:
The nltk module is running with other libraries in the corpus folder.
我已经尝试过首先输入“import nltk”,但它仍然是一样的,而且我也尝试过“from nltk.tokenize import 'PunktSentenceTokenizer”。不知道为什么 Python shell 找不到 nltk 的定义。我应该如何解决这个问题?我还在学习如何编写和编码 python。
【问题讨论】:
-
你为 python 3.7 安装了 nltk 吗?
-
你在命令提示符下试过
pip3 install nltk吗? -
是的,我试过了
-
运行
python3 <your_script_name>.py时会发生什么? -
"'python3' 未被识别为内部或外部命令"
标签: nltk