在这一天花了很多时间,我真的在我的智慧结束.我有一台机器"A"安装了Python 2.6.6/2.7.2,另一台机器"B"安装了Python 2.6.7/2.7.2.
在机器A上,我可以urllib2.urlopen('https://fed.princeton.edu')使用Python 2.6.6 获得SSLv3加密的网站,但不能使用2.7.2.
在机器B上,我无法使用Python版本获得该网站.
由于无法得到,我的意思是我得到错误:
Traceback:
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django_cas-2.0.3-py2.7.egg/django_cas/views.py" in login
78. user = auth.authenticate(ticket=ticket, service=service)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/contrib/auth/__init__.py" in authenticate
55. user = backend.authenticate(**credentials)
File "/usr/local/lib/python2.7/dist-packages/django_cas-2.0.3-py2.7.egg/django_cas/backends.py" in authenticate
72. username = _verify(ticket, service)
File "/usr/local/lib/python2.7/dist-packages/django_cas-2.0.3-py2.7.egg/django_cas/backends.py" in _verify_cas2
46. page = urlopen(url)
File "/usr/lib/python2.7/urllib.py" in urlopen
84. return opener.open(url)
File "/usr/lib/python2.7/urllib.py" in open
205. return getattr(self, name)(url)
File "/usr/lib/python2.7/urllib.py" in open_https
435. h.endheaders(data)
File "/usr/lib/python2.7/httplib.py" …Run Code Online (Sandbox Code Playgroud) 在网上找不到这个答案.当按下Ctrl + C时:
谢谢!