python -m spacy download en ConnectionError

可能是国内不方便连接GitHub。

我早已配好了清华的anaconda源

(base) a@ubuntu:~$ cat .pip/pip.conf 
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn

anaconda已经集成了spacy的model。

conda install -c conda-forge spacy-model-en_core_web_sm
conda install -c conda-forge spacy-model-en_core_web_md
conda install -c conda-forge spacy-model-en_core_web_lg

posted on 2020-06-04 08:51  likeatree  阅读(1606)  评论(0编辑  收藏  举报

导航