在使用pip 指令的时候,出现了以下问题。当时使用pip list查看的时候,就出现了下面的问题:

Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming the tssl certificae: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),)) - skipping

截图如下:

原因分析:

无法访问到https://pypi.tuna.tsinghua.edu.cn/simple/pip,SSL证书认证问题。

解决办法:

pip list --trusted-host pypi.tuna.tsinghua.edu.cn  在语句后面将其设置为可信任即可,注意host后面的部分是前面红色加粗字体所对应的,问题得到了解决。

 

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐