admin管理员组文章数量:1559101
错误代码:
c:\python27\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:150: insecureplatformwarning: a true sslcontext object is not available.
this prevents
urllib3 from configuring ssl appropriately and may cause certain
ssl connections to
fail. you can upgrade to a newer version of python to solve this.
for more
information, see https://urllib3.readthedocs.
io/en/latest/advanced-usage.
html#ssl-warnings insecureplatformwarning
could not fetch url https://pypi/simple/pygame/:
there was a problem
onfirming the ssl certificate: httpsconnectionpool(host='pypi', port=443):
max etries exceeded with url: /simple/pygame/ (caused by
sslerror(sslerror(1, _ssl.c:499: error:1407742e:ssl
outines:ssl23_get_server_hello:tlsv1 alert protocol version'),)) - skipping
出现这个问题的原因是安装源的证书不受信任,可更改pip的配置文件解决这个问题:
更改配置文件首先要知道配置文件在哪,通过阅读pip的源码:
以下是pip源码
if windows:
bin_p
本文标签: pip
j9九游会老哥俱乐部交流区的版权声明:本文标题:解决pip安装时出现sslerror的问题 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1727342156a1109546.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论