美文网首页
解决pip的警告

解决pip的警告

作者: pcliuyang | 来源:发表于2016-06-03 10:49 被阅读9386次

    用pip安装软件包时,经常会有如下警告

    SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning. 
    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.org/en/latest/security.html#insecureplatformwarning. 
    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.org/en/latest/security.html#insecureplatformwarning.
    

    解决办法:

    pip install pyopenssl ndg-httpsclient pyasn1
    

    相关文章

      网友评论

          本文标题:解决pip的警告

          本文链接:https://www.haomeiwen.com/subject/xynkdttx.html