![](/img/trans.png)
[英]Can't find pyside-uic when PySide was installed using Enthought Python and Mac OS X
[英]Can I relink enthought python to new version of openssl on Mac OS X?
今天早上,我在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“import ssl; print ssl.OPENSSL_VERSION”
回报
OpenSSL 0.9.7l 2006年9月28日
我的问题是,我是否可以将EPD Mac版本的Python链接到更新版本的openssl - 或者这是Enthought需要做的改变吗?
(我只是想在我的Mac上编译openssl(使用http://techscienceinterest.blogspot.com/2010/12/compiling-openssl-on-mac-os-x-snow.html上的说明)并使用homebrew来构建我自己的Python可执行文件使用较新版本的openssl( http://hackercodex.com/guide/python-virtualenv-on-mac-osx-mountain-lion-10.8/ )。
雷蒙德,感谢你的报道。 EPD的继任者,现在处于测试阶段,包含OpenSSL 0.9.8r 8 Feb 2011
,并没有这个问题。 (FWIW,它还包含您在遇到SSL问题时尝试安装的最新版本的requests
。)
它很快就会出现测试版,但与此同时,如果您想在那里试用,我会看到您已经有测试版邀请函。
我们还将研究EPD 7.3的可能修复或解决方法。
我发现使用新的具有SSL意识的pypi,我必须允许 - 未经验证并允许外部许多软件包。 所以对于requests
,这将是:
pip install --upgrade --force-reinstall --allow-all-external --allow-unverified requests requests
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.