python urllib2.py urlopen导致SSL例程SSL23_GET_SERVER_HELLO:sslv3警报握手失败

时间:2017-05-04 20:51:49

标签: python ssl

问题是我从python中获取的是使用urllib2库。

我得到的确切错误是:

urllib2.URLError: <urlopen error [Errno1] _ssl.c:499: error:14077410:SSL 
routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure>

由于我只是在使用图书馆,所以我不确定我应该怎样解决这个问题。我不知道位于:https://docs.python.org/2/library/urllib2.html的urllib2库是否有一些我可以用来绕过这个错误的标志。

现在我在以下电话中使用它:

from urllib2 import urlopen, URLError, HTTPError

url = "https://download.jetbrains.com/idea/ideaIC-2017.1.2.exe";
u = urlopen(url)
meta = u.info()

正如您所看到的,我正在尝试自动化环境设置脚本,利用JetBrain的社区版IDE ...这将是默认安装,除非用户指定其他内容。

Image of stack trace

0 个答案:

没有答案