macos 为什么空闲总是崩溃?(苹果电脑)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6781558/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why does Idle keep crashing? (Mac)
提问by Sheldon
I just installed python 2.6 on Mac OS X (Snow Leopard) and when I start IDLE it keeps quitting!
我刚刚在 Mac OS X (Snow Leopard) 上安装了 python 2.6,当我启动 IDLE 时它一直退出!
I removed all the installations of python by: rm -rf /Library/Frameworks/Python.Framework
我通过以下方式删除了 python 的所有安装: rm -rf /Library/Frameworks/Python.Framework
and then re-installed it and I still get the same problem :(
然后重新安装它,我仍然遇到同样的问题:(
Any ideas what it might be?
任何想法可能是什么?
Thanks
谢谢
采纳答案by Ned Deily
You are undoubtedly using a version of Python that is dynamically linking to the Apple-supplied Tcl/Tk 8.5 in OS X 10.6. That version of Tcl/Tk is seriously flawed. There are several easy ways to avoid the problem, the simplest being to install a current Python 2.7 (or now out-of-date 2.6) installer from python.organd, for the 64-bit/32-bit installers, install an up-to-date ActiveTcl 8.5. There is more information here.
毫无疑问,您使用的 Python 版本在 OS X 10.6 中动态链接到 Apple 提供的 Tcl/Tk 8.5。该版本的 Tcl/Tk 存在严重缺陷。有几种简单的方法可以避免这个问题,最简单的方法是从 python.org安装当前的 Python 2.7(或现在已经过时的 2.6)安装程序,对于 64 位/32 位安装程序,安装一个 up最新的ActiveTcl 8.5。有更多的信息在这里。
I should add that, while that is by far the most common problem with IDLE on OS X 10.6, it is possible there could be another cause. Take a look at the system.log (with Console.app
) you are launching IDLE.app or start IDLE from a shell and see what error messages are being reported.
我应该补充一点,虽然这是 OS X 10.6 上 IDLE 迄今为止最常见的问题,但可能还有其他原因。查看Console.app
您正在启动 IDLE.app 或从 shell 启动 IDLE的 system.log(带有),并查看报告了哪些错误消息。