Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming th
在使用pip 指令的时候,出现了以下问题。Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=4
在使用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后面的部分是前面红色加粗字体所对应的,问题得到了解决。
更多推荐
所有评论(0)