SNIMissingWarning和InsecurePlatformWarning警告
来源:互联网 发布:chrome浏览器 知乎 编辑:程序博客网 时间:2024/05/16 14:40
在爬取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
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
阅读全文
0 0
- SNIMissingWarning和InsecurePlatformWarning警告
- python解决SNIMissingWarning和InsecurePlatformWarning警告
- python解决SNIMissingWarning和InsecurePlatformWarning警告
- python解决SNIMissingWarning和InsecurePlatformWarning警告
- python解决SNIMissingWarning和InsecurePlatformWarning警告
- python解决SNIMissingWarning和InsecurePlatformWarning警告 在想要获取https站点的资源时,会报出SNIMissingWarning和InsecureP
- python SNIMissingWarning InsecurePlatformWarning
- django python报错:SNIMissingWarning,InsecurePlatformWarning
- pip安装模块警告InsecurePlatformWarning: A true SSLContext object is not available.
- pip安装模块警告InsecurePlatformWarning: A true SSLContext object is not available.
- pip安装模块警告InsecurePlatformWarning: A true SSLContext object is not available.
- ubuntu InsecurePlatformWarning:
- 编译和警告
- iOS错误和警告
- Bootstrap 缩略图和警告
- vs2013 错误和警告
- 连接错误和警告处理
- Quartus常见警告和错误
- vue 公共底部
- VIM设置---支持鼠标进行光标定位,上下滚动
- 时间字符串格式化
- jQuery中的DOM操作
- GDI+ 中发生一般性错误 可能的原因
- SNIMissingWarning和InsecurePlatformWarning警告
- 迭代器学习笔记
- PHP 导出 万级别数据 时间测试
- 关于android中服务协议此类大量篇幅需要换行的文字的处理。
- HDU 1720
- SQL语句使用经典例子
- Visual Studio 2013 C#快捷键
- Python06_面向对象高级编程
- Jquery动态生成的标签添加绑定事件