首页 > 其他 > 详细

SNIMissingWarning和InsecurePlatformWarning警告

时间:2016-12-12 01:55:19      阅读:1700      评论:0      收藏:0      [点我收藏+]

在爬取weibo.com等动态网站时,pycharm在运行时会提出SNIMissingWarning和InsecurePlatformWarning警告

详细警告内容如下:

 

 D:\Python2.7.6\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
D:\Python2.7.6\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 
 
解决方法:
在DOS窗口中输入:
pip install pyopenssl ndg-httpsclient pyasn1

SNIMissingWarning和InsecurePlatformWarning警告

原文:http://www.cnblogs.com/EmilySun/p/6160984.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!