2017-08-30 81 views
0

当我做req = requests.get(url,verify=False) 它只是告诉我错误 及出错信息如下:谁能帮助我,约蟒蛇requests.get错误

OpenSSL.SSL.SysCallError: (-1, 'Unexpected EOF') 

During handling of the above exception, another exception occurred: 
ssl.SSLError: ("bad handshake: SysCallError(-1, 'Unexpected EOF')",) 

During handling of the above exception, another exception occurred: 
urllib3.exceptions.SSLError: ("bad handshake: SysCallError(-1, 'Unexpected EOF')",) 

During handling of the above exception, another exception occurred: 
requests.exceptions.SSLError: ("bad handshake: SysCallError(-1, 'Unexpected EOF')",) 

我已经寻找了一天的解决方案。希望有人帮忙谢谢!

+0

一个问题我不习惯用stackflow和我的英语poor.it是如此难以解释我的问题。但我只是为了解决it.hope人帮我 –

回答

0

我只是遇到你同样的问题昨天晚上,它只是因为你的Python版本较低,看到这个问题:
InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately 它与你相似。

是的,我将python升级到2.7.10,但之后,我发现我无法安装第三个库。我已经张贴在这里 how to upgrade python to 2.7.10 on ubuntu12.04

+0

谢谢回答和所以很抱歉我的回帖太迟了。但是我的python版本是3.6.2,它是最新的。你所说的无法解决我的问题。我不能帮助你,因为我赢了。希望你的问题可以尽快解决 –