2013-03-15 9 views
9

今朝、Mac OS X 10.6.8でEPD 7.3を使用してSSL関連の問題に取り掛かりました。私はピップ(バージョン1.3.1)を実行すると、私が手:Mac OS X上で新しいバージョンのopensslにenthought pythonを再リンクすることはできますか?

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ていると思う - つまり、パイソンにリンクされたOpenSSLのバージョンが古すぎます:

のpython -c "輸入SSL;印刷ssl.OPENSSL_VERSION"

戻り

のOpenSSL 0.9.7l 2006年9月28日

私の質問は、私には、OpenSSLの新しいバージョンにリンクするのPythonのEPD Mac版を入手することが可能だかどうかである - か、この変更を行う必要があるEnthoughtものです?

(私はちょうどhttp://techscienceinterest.blogspot.com/2010/12/compiling-openssl-on-mac-os-x-snow.htmlで命令を使用して(私のMac上でOpenSSLをコンパイルするために考え出した)とOpenSSLの新しいバージョン(http://hackercodex.com/guide/python-virtualenv-on-mac-osx-mountain-lion-10.8/)を使用して実行可能な自分のPythonを構築するために自作を使用しています。

+0

私はあなたが大好きです。 –

答えて

6

レイモンド、に感謝(遅いベータ版)のEPDの後継者にはOpenSSL 0.9.8r 8 Feb 2011が含まれており、この問題は発生しません(FWIW、requestsの最新バージョンが含まれています)。

すぐにベータ版がリリースされますが、その間は、あなたが既にベータ版を持っていることがわかります。それを試してみたい。

EPD 7.3の可能な修正または回避策についても検討します。

+4

ジョナサン:ありがとう。実際にピップ1.3.1を使用してこの問題に遭遇しました。私の回避策:easy_installを使用して、しばらくの間、pip 1.2.1にダウングレードしてください。 –

+6

... '' easy_install pip == 1.2.1''というコマンドです。 – mforbes

+2

ピップ1.3以前は非常に安全ではなかったため、ピップ1.3はSSLサポートをPyPIインストールに追加したので注意してください。 –

2

新しいSSL対応のピピを使用すると、多くのパッケージで未検証と外部許可を許可する必要があることがわかりました。だからrequestsの場合、これは次のようになります:

pip install --upgrade --force-reinstall --allow-all-external --allow-unverified requests requests 
関連する問題