简体   繁体   English

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

[英]Can I relink enthought python to new version of openssl on Mac OS X?

This morning, I'm running into SSL related problems using EPD 7.3 on Mac OS X 10.6.8. 今天早上,我在Mac OS X 10.6.8上使用EPD 7.3遇到了与SSL相关的问题。 When I run pip (version 1.3.1), I get: 当我运行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

I think I'm running into the problem detailed in https://github.com/pypa/pip/issues/829 and https://groups.google.com/d/msg/python-virtualenv/C_a_IX_8Ejc/83l8XfpUarQJ -- that is, the version of openssl linked to python is too old: 我想我遇到了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" python -c“import ssl; print ssl.OPENSSL_VERSION”

returns 回报

OpenSSL 0.9.7l 28 Sep 2006 OpenSSL 0.9.7l 2006年9月28日

My question is whether it's possible for me to get the EPD Mac version of Python to link to a newer version of openssl -- or is this change something Enthought needs to do? 我的问题是,我是否可以将EPD Mac版本的Python链接到更新版本的openssl - 或者这是Enthought需要做的改变吗?

(I just figured out to compile openssl on my Mac (using instructions at http://techscienceinterest.blogspot.com/2010/12/compiling-openssl-on-mac-os-x-snow.html ) and use homebrew to build my own Python executable to use a newer version of openssl ( http://hackercodex.com/guide/python-virtualenv-on-mac-osx-mountain-lion-10.8/ ). (我只是想在我的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/ )。

Raymond, thanks for the report. 雷蒙德,感谢你的报道。 EPD's successor, now in late beta, contains OpenSSL 0.9.8r 8 Feb 2011 , and does not have this problem. EPD的继任者,现在处于测试阶段,包含OpenSSL 0.9.8r 8 Feb 2011 ,并没有这个问题。 (FWIW, it also contains a recent version of requests , which you were attempting to install when you hit the SSL issue.) (FWIW,它还包含您在遇到SSL问题时尝试安装的最新版本的requests 。)

It will be out of beta very soon, but in the meantime I see that you already have a beta invitation if you would like to try it there. 它很快就会出现测试版,但与此同时,如果您想在那里试用,我会看到您已经有测试版邀请函。

We will also investigate possible fixes or workarounds for EPD 7.3. 我们还将研究EPD 7.3的可能修复或解决方法。

I'm finding that with the new SSL-conscious pypi I have to allow-unverified and allow-external for a lot of packages. 我发现使用新的具有SSL意识的pypi,我必须允许 - 未经验证并允许外部许多软件包。 So for requests , this would be: 所以对于requests ,这将是:

pip install --upgrade --force-reinstall --allow-all-external --allow-unverified requests requests

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM