赞
踩
装nltk的data包时碰到的问题, 比如我跑一个NLP模型, 需要stopwords包
$ python
>> import nltk
>> nltk.download()
Downloader> d
Identifier> stopwords
报错
[nltk_data] Downloading package stopwords to /home/falca/nltk_data...
[nltk_data] Error downloading 'stopwords' from
[nltk_data] <https://raw.githubusercontent.com/nltk/nltk_data/gh-
[nltk_data] pages/packages/corpora/stopwords.zip>: Remote end
[nltk_data] closed connection without response
False
网络问题, 搜了一大圈(又是似曾相识的配环境高血压环节)
有说改ssl链接的, 有说写脚本主动配链接的, 有说手动下载包然后改名字copy到库路径下的
…
解决
然后我改了个代理节点就下下来了, 还是浪费了1h = =
配环境, 一生之敌
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。