今天上午,我运行到在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版本太旧:
蟒蛇-c “进口SSL;打印ssl.OPENSSL_VERSION”
回报
OpenSSL的0.9.7l 28 2006年9月
我的问题是,是否有可能,我得到的Python的EPD Mac版链接到的OpenSSL的新版本-或者是这种变化的东西Enthought需要做什么?
(我只是想出了编译OpenSSL的在我的Mac(使用说明在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/ )。