import nltk nltk.download()如果下载失败在github上下载语料库:https://github.com/nltk/nltk_data
将里面的packages文件名改成nltk_data(里面的压缩包都要解压)