可以跳到解决方法直接看哟~
踩雷过程😭
在使用pip install nltk
后运行以下代码
import nltk
sentence = "The big dog is sleeping on the bed"
token = nltk.word_tokenize(sentence)
nltk.pos_tag(token)
出现了报错👇

也就是LookupError,点开它提示的报错文档看,提示是因为没有下载punkt包【这一步卡了好久,因为没有点开文档看orz话说就这么一句话你直接打出来不行吗(╯°Д°)╯ ┻━┻】
然后直接使用ntlk.download()下载的话可能会出现Error