pip install 遇到SSL问题

如何临时解决SSL ERROR

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertV
erificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain
(_ssl.c:1076)’))’: /simple/lxml/

我在执行pip install lxml的时候遇到了以上错误,搜了全网,以下方式亲测有效

执行 pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org lxml
其中lxml是我所需要下载的三方包

pip install 遇到SSL问题_第1张图片

你可能感兴趣的:(python)