我可以重新链接enthought蟒蛇OpenSSL的新版本在Mac OS X?(Can I reli

2019-08-17 15:45发布

今天上午,我运行到在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/ )。

Answer 1:

雷蒙德,感谢您的报告。 环保署的继任者,目前在后期测试阶段,包括OpenSSL 0.9.8r 8 Feb 2011 ,不存在这个问题。 (FWIW,还包含了最近版本requests ,其中您试图安装时,你打的SSL问题。)

这将是完成测试的很快,但与此同时,我看到你已经有一个测试版的邀请,如果你想尝试它。

我们也将研究可能的解决方法或解决方法EPD 7.3。



Answer 2:

我发现,用新的SSL意识的PyPI我必须允许,未经验证,并允许外部的一个很大的包。 因此,对于requests ,这将是:

pip install --upgrade --force-reinstall --allow-all-external --allow-unverified requests requests


文章来源: Can I relink enthought python to new version of openssl on Mac OS X?