【发布时间】:2013-03-04 16:30:50
【问题描述】:
今天早上,我在 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
我想我遇到了https://github.com/pypa/pip/issues/829和https://groups.google.com/d/msg/python-virtualenv/C_a_IX_8Ejc/83l8XfpUarQJ中详述的问题——即与python链接的openssl版本太旧:
python -c "导入 ssl;打印 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 的说明)并使用自制软件构建我自己的 Python 可执行文件以使用更新版本的 openssl (http://hackercodex.com/guide/python-virtualenv-on-mac-osx-mountain-lion-10.8/)。
【问题讨论】:
标签: python macos openssl pip enthought