如果您使用的是python2.7,请从运行的终端安装它: pip install nltk 否则,对于python 3,只需运行 pip3 install nltk
pip install nltk
pip3 install nltk
如果你遇到这种错误
只是运行 nltk.download('punkt') (或者无论您在错误中看到什么,这里我得到了punkt)来自我们的python控制台
nltk.download('punkt')
你现在不应该看到任何重要的事情