我正在使用 Ubuntu。我用
安装了 spacysudo pip3 install spacy
不过,我试过了
sudo python -m spacy.en.download allpython
但是我一直报错
ConnectionResetError: [Errno 104] Connection reset by peer
这是为什么?
最佳答案
尝试通过不同的镜像下载库
pip install -i https://pypi.python.org/pypi/spacy
或
pip install --use-mirror spacy
编辑
本地安装
git clone https://github.com/explosion/spaCy
cd spaCy
git checkout --tag your_wanted_tag_here
cd ../
pip install ./spaCy/
关于python - 在 Python 3 上安装 spaCy 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41216091/