我可以在Mac OS X上重新将python链接到新版本的openssl吗? [英] Can I relink enthought python to new version of openssl on Mac OS X?

查看:246
本文介绍了我可以在Mac OS X上重新将python链接到新版本的openssl吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

This morning, I'm running into SSL related problems using EPD 7.3 on Mac OS X 10.6.8. When I run pip (version 1.3.1), I get:

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

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

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:

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

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

返回

OpenSSL 0.9.7l 2006年9月28日

OpenSSL 0.9.7l 28 Sep 2006

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

(我刚刚想在Mac上编译openssl(使用 http://hackercodex.com/guide/python- virtualenv-on-mac-osx-mountain-lion-10.8/).

(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/).

推荐答案

雷蒙德,感谢您的举报. EPD的后继产品(现在处于beta版)包含OpenSSL 0.9.8r 8 Feb 2011,并且没有此问题. (FWIW,它还包含requests的最新版本,当您遇到SSL问题时,您正在尝试安装该版本.)

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. (FWIW, it also contains a recent version of requests, which you were attempting to install when you hit the SSL issue.)

很快就会退出测试版,但是与此同时,我发现如果您想在那里进行试用,那么您已经有了一个测试版邀请.

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.

我们还将调查EPD 7.3的可能修复程序或解决方法.

We will also investigate possible fixes or workarounds for EPD 7.3.

这篇关于我可以在Mac OS X上重新将python链接到新版本的openssl吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆