使用pip安装组件时,提示错误
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1122)'))'
解决办法:
pip3 install --trusted-host pypi.org --trusted-host files.pythonhosted.org <这里写安装组件的名字>
更新pip
python -m pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org --upgrade pip
版权属于:CraZyMoNk
本文链接:https://blog.peacharc.com/archives/590.html
转载时须注明出处及本声明