10

今朝、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/ )。

4

2 に答える 2

6

レイモンド、報告ありがとう。EPD の後継バージョン (現在ベータ版) には が含まれておりOpenSSL 0.9.8r 8 Feb 2011、この問題はありません。requests(FWIW、 SSLの問題に遭遇したときにインストールしようとしていた の最近のバージョンも含まれています。)

間もなくベータ版が終了しますが、それまでの間、ベータ版を試してみたい場合は、すでにベータ版への招待状を受け取っているようです。

また、EPD 7.3 の可能な修正または回避策も調査します。

于 2013-03-17T14:32:50.967 に答える
3

新しい SSL を意識した pypi では、多くのパッケージで未検証の許可と外部の許可を行う必要があることがわかりました。の場合requests、これは次のようになります。

pip install --upgrade --force-reinstall --allow-all-external --allow-unverified requests requests
于 2014-09-19T18:24:46.857 に答える