今朝、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 日
私の質問は、Python の EPD Mac バージョンを新しいバージョンの openssl にリンクすることが可能かどうかです。それとも、この変更は Enthought が行う必要があるものですか?
(Macでopensslをコンパイルし(http://techscienceinterest.blogspot.com/2010/12/compiling-openssl-on-mac-os-x-snow.htmlの手順を使用)、homebrewを使用してビルドすることを理解しました新しいバージョンの openssl を使用するための独自の Python 実行可能ファイル ( http://hackercodex.com/guide/python-virtualenv-on-mac-osx-mountain-lion-10.8/ )。