使用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
Last modification:November 4, 2020
如果觉得文章对你有用,请随意赞赏