首先我用到的代码需要用的是nltk==3.2.5,因此需要卸载原来nltk(pip3 install nltk),重新安装(pip3 install nltk==3.2.5)。
重新运行后出现错误:(后面还有很长)
raise LookupError(resource_not_found)
LookupError:
**********************************************************************
Resource perluniprops not found.
Please use the NLTK Downloader to obtain the resource:
>>> import nltk
>>> nltk.download('perluniprops')
那就在命令窗口按提示操作吧,进入python后:
import nltk
nltk.download()
又提示这个错误:
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:7