1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 使用pip报错:Could not fetch URL https://pypi.org/simple/: There was a problem confirming the ssl certi

使用pip报错:Could not fetch URL https://pypi.org/simple/: There was a problem confirming the ssl certi

时间:2019-12-21 21:00:20

相关推荐

使用pip报错:Could not fetch URL https://pypi.org/simple/: There was a problem confirming the ssl certi

** WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcef6598280>: Failed to establish a new connection: [Errno -2] Name or service not known’)’: /simple/schedule/

** WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcef6598e20>: Failed to establish a new connection: [Errno -2] Name or service not known’)’: /simple/schedule/

** WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcef6598fd0>: Failed to establish a new connection: [Errno -2] Name or service not known’)’: /simple/schedule/

** WARNING: Retrying (Retry(total=1, 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:1129)’))’: /simple/schedule/

** WARNING: Retrying (Retry(total=0, 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:1129)’))’: /simple/schedule/

解决办法

pip install 要安装的包名 -i /simple --trusted-host

常用镜像源:

1)/pypi/simple/ 阿里云

2)https://pypi.mirrors./simple/ 中国科技大学

3) /simple/ 豆瓣

4) https://pypi.tuna./simple/ 清华大学

5) http://pypi.mirrors./simple/ 中国科学技术大学

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。