zoukankan      html  css  js  c++  java
  • python解决SNIMissingWarning和InsecurePlatformWarning警告

    在爬取豆瓣等动态网站时,在运行时会提出SNIMissingWarning和InsecurePlatformWarning警告

    详细警告内容如下:

     D:Python2.7.8libsite-packages equestspackagesurllib3utilssl_.py:315: 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. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
      SNIMissingWarning

    D:Python2.7.8libsite-packages equestspackagesurllib3utilssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
      InsecurePlatformWarning 
    解决方法:
    在cmd中输入:
    pip install pyopenssl ndg-httpsclient pyasn1
  • 相关阅读:
    msp430入门学习30
    msp430入门学习03
    msp430入门学习27
    msp430入门学习26
    msp430入门学习25
    msp430入门学习24
    msp430入门学习23
    msp430入门学习22
    去掉xcode中警告的一些经验
    CocoaPods详解之----使用篇
  • 原文地址:https://www.cnblogs.com/gsxx/p/6777267.html
Copyright © 2011-2022 走看看