安装 Spacy 时出现 SSL 证书错误

问题描述 投票:0回答:3

我在安装 Spacy 时遇到以下错误。

requests.exceptions.SSLError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /explosion/spacy-models/master/compatibility.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))

我正在运行的命令: python -m spacy download en_core_web_md

spacy rasa rasa-x
3个回答
7
投票

我已经修复了使用这组命令的问题:

pip install pip-system-certs
python -m spacy download it_core_news_sm

参考:https://github.com/explosion/spaCy/discussions/5649


0
投票

我已按照以下步骤修复了它。

Edited the .condarc file with ssl = false
while installing the anaconda, the default checkbox for PATH setup leave as it is.

谢谢


0
投票

经过一番努力,我通过运行直接下载链接修复了它,运行此命令来下载包。

 python -m spacy download en_core_web_md-3.7.1 --direct
© www.soinside.com 2019 - 2024. All rights reserved.