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