我可以将enthought python重新连接到Mac OS X上的新版openssl吗?

Ray*_*Yee 10 python macos openssl pip enthought

今天早上,我在Mac OS X 10.6.8上使用EPD 7.3遇到了与SSL相关的问题.当我运行pip(版本1.3.1)时,我得到:

pip install requests
Downloading/unpacking requests
  Could not fetch URL https://pypi.python.org/simple/requests/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:504: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm>
  Will skip URL https://pypi.python.org/simple/requests/ when looking for download links for requests
  Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:504: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm>
  Will skip URL https://pypi.python.org/simple/ when looking for download links for requests
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not fetch URL https://pypi.python.org/simple/requests/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:504: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm>
  Will skip URL https://pypi.python.org/simple/requests/ when looking for download links for requests
  Could not find any downloads that satisfy the requirement requests
No distributions at all found for requests
Run Code Online (Sandbox Code Playgroud)

我想我遇到了https://github.com/pypa/pip/issues/829https://groups.google.com/d/msg/python-virtualenv/C_a_IX_8Ejc/83l8XfpUarQJ中详述的问题-也就是说,链接到python的openssl版本太旧了:

python -c"import ssl; print ssl.OPENSSL_VERSION"

回报

OpenSSL 0.9.7l 2006年9月28日

我的问题是,我是否可以将EPD Mac版本的Python链接到更新版本的openssl - 或者这是Enthought需要做的改变吗?

(我只是想在我的Mac上编译openssl(使用http://techscienceinterest.blogspot.com/2010/12/compiling-openssl-on-mac-os-x-snow.html上的说明)并使用homebrew来构建我自己的Python可执行文件使用较新版本的openssl(http://hackercodex.com/guide/python-virtualenv-on-mac-osx-mountain-lion-10.8/).

Jon*_*rch 6

雷蒙德,感谢你的报道.EPD的继任者现在处于测试阶段,包含OpenSSL 0.9.8r 8 Feb 2011并且没有这个问题.(FWIW,它还包含requests您在遇到SSL问题时尝试安装的最新版本.)

它很快就会出现测试版,但与此同时,如果您想在那里试用,我会看到您已经有测试版邀请函.

我们还将研究EPD 7.3的可能修复或解决方法.

  • ...命令是``easy_install pip == 1.2.1``. (6认同)
  • 乔纳森:谢谢.实际上在使用pip 1.3.1时遇到了这个问题.我的解决方法:暂时使用easy_install降级到pip 1.2.1. (4认同)
  • 要小心,因为在pip 1.3之前它非常不安全,并且pip 1.3为PyPI安装添加了SSL支持. (2认同)
  • 我知道使用SSL的pip 1.3是一件好事,但是当pip 1.3在我的上下文中根本不起作用时,我愿意生活有点危险并且暂时使用pip 1.2.1. (2认同)