我在Macbook Air 10.5 Yosemite上运行Python 2.7。我在安装textblob时遇到了这个问题。怎么办?
$ pip install -U textblob //no errors
$ python -m textblob.download_corpora
[nltk_data] Error loading brown: <urlopen error [SSL:
[nltk_data]dsaffdsa CERTIFICATE_VERIFY_FAILED] certificate verify failed
[nltk_data] (_ssl.c:661)>
[nltk_data] Error loading punkt: <urlopen error [SSL:
[nltk_data] CERTIFICATE_VERIFY_FAILED] certificate verify failed
[nltk_data] (_ssl.c:661)>
[nltk_data] Error loading wordnet: <urlopen error [SSL:
[nltk_data] CERTIFICATE_VERIFY_FAILED] certificate verify failed
[nltk_data] (_ssl.c:661)>
[nltk_data] Error loading averaged_perceptron_tagger: <urlopen error
[nltk_data] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify
[nltk_data] failed (_ssl.c:661)>
[nltk_data] Error loading conll2000: <urlopen error [SSL:
[nltk_data] CERTIFICATE_VERIFY_FAILED] certificate verify failed
[nltk_data] (_ssl.c:661)>
[nltk_data] Error loading movie_reviews: <urlopen error [SSL:
[nltk_data] CERTIFICATE_VERIFY_FAILED] certificate verify failed
[nltk_data] (_ssl.c:661)>
Finished.
答案 0 :(得分:1)
我遇到了类似的问题,并在此处发布了解决方案:NLTK download SSL: Certificate verify failed
尝试下载Python 3.6并运行/Applications/Python\ 3.6/Install\ Certificates.command
。