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

Posted Ska-

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用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 http://pypi.douban.com/simple --trusted-host pypi.douban.com

常用镜像源:

1)http://mirrors.aliyun.com/pypi/simple/ 阿里云
2)https://pypi.mirrors.ustc.edu.cn/simple/ 中国科技大学
3) http://pypi.douban.com/simple/ 豆瓣
4) https://pypi.tuna.tsinghua.edu.cn/simple/ 清华大学
5) http://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学

以上是关于使用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

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

解决 pip install 安装时出现Could not fetch URLd的问题

mac 下pip安装python三方库的时候提示 Could not fetch URL https://pypi.python.org/simple/virtualenv/: There was a

python pip install XX 出现Could not fetch URL https://pypi.python.org/simple/pool/: There was a proble

Python pip install 安装包报错ERROR: Could not find a version that satisfies the requirement XXX解决方法