python SNIMissingWarning InsecurePlatformWarning
2017-11-18 21:54
447 查看
在python2.7.6 下使用requests进行爬网络数据时,遇到问题:
SNIMissingWarning
C:\Python2.7\lib\site-packages\requests\packages\urllib3\util\ssl_.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
问题:
C:\Python2.7\lib\site-packages\requests\packages\urllib3\util\ssl_.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
C:\Python2.7\lib\site-packages\requests\packages\urllib3\util\ssl_.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
解决办法:
pip install pyopenssl ndg-httpsclient pyasn1
参考
http://blog.csdn.net/Alex_X_Jane/article/details/51146537相关文章推荐
- python解决SNIMissingWarning和InsecurePlatformWarning警告
- django python报错:SNIMissingWarning,InsecurePlatformWarning
- python解决SNIMissingWarning和InsecurePlatformWarning警告
- python解决SNIMissingWarning和InsecurePlatformWarning警告
- python解决SNIMissingWarning和InsecurePlatformWarning警告
- python解决SNIMissingWarning和InsecurePlatformWarning警告 在想要获取https站点的资源时,会报出SNIMissingWarning和InsecureP
- pip install waring "SNIMissingWarning","InsecurePlatformWarning"
- Python 出现错误 SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform.
- python问题之requests\packages\urllib3\util\ssl_.py:100: InsecurePlatformWarning
- python https协议和InsecurePlatformWarning问题
- pip install InsecurePlatformWarning: A true SSLContext object is not available.
- ubuntu InsecurePlatformWarning:
- python爬虫遇到https站点InsecureRequestWarning警告解决方案
- 禁止requests请求https的提示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
- Python requests 移除SSL认证,控制台输出InsecureRequestWarning取消方法。
- pip安装模块警告InsecurePlatformWarning: A true SSLContext object is not available.
- python解决SNIMissingWarning和InsecurePlatformWarning警告
- pip: InsecurePlatformWarning: A true SSLContext object is not available
- pip安装模块警告InsecurePlatformWarning: A true SSLContext object is not available.
- python SSLError CERTIFICATE_VERIFY_FAILED InsecureRequestWarning