在 Mac OS X 上打开时 IDLE 崩溃

2022-01-12 00:00:00 python python-idle macos crash

问题描述

我最近尝试在我的 macbook pro 上安装 python 3.2 和 IDLE 3.我成功安装了 python 3.2(如,我可以从终端运行它),但是当我尝试安装 IDLE 3.2 时,我一定做错了,因为现在 IDLE 2.7 和 IDLE 3.2 在打开时立即崩溃并显示消息Python 退出意外",无论我是通过终端还是通过查找器打开它.有谁知道如何解决这一问题?我已经安装了正确的 ActiveTCL 包(并重新安装),但仍然没有.我试图重新安装 python 3.2 和 IDLE 3,但我不确定我是否正确安装.通过大量的谷歌搜索,我发现有些人说这很可能是路径问题,但我发现的所有解决方案都是使用 Windows,所以我不知道如何将它应用到我的 mac.

I recently attempted to install python 3.2 along with IDLE 3 on my macbook pro. I successfully installed python 3.2 (as in, I can run it from the terminal), but when I attempted to install IDLE 3.2 I must have done something wrong because now both IDLE 2.7 and IDLE 3.2 crash immediately upon opening with the message "Python quit unexpectedly", no matter whether I open it through the terminal or through finder. Does anyone know how to fix this? I have installed the correct ActiveTCL package (and reinstalled) and still nothing. I have attempted to reinstall python 3.2 and IDLE 3 but I am not sure whether I did it correctly. Through a good amount of googling I found some people say that it was most likely a path issue but all of the solutions I found were using Windows so I am not sure how to apply that to my mac.


解决方案

我也遇到了同样的问题.我运行 OSX 10.8.5、Python 3.3.3 和 IDLE 3.3.3 并且重新安装 Python 不是解决方案.我解决了删除 ~/.idlerc 目录的任何问题.当我尝试更改某些首选项(IDLE->首选项->常规->启动首选项->在启动时打开编辑窗口)时,我的问题第一次出现,所以我想这就是为什么重置我的首选项删除 ~/.idlerc 文件夹是解决方案.

I had the same issue. I run OSX 10.8.5, Python 3.3.3 and IDLE 3.3.3 and reinstalling Python haven't been a solution. I solved any problem removing the ~/.idlerc directory. My problem showed for the first time when I tried to change some Preferences (IDLE->Preferences->General->Startup Preferences->At Startup Open Edit Window), so I suppose that's why resetting my Preferences deleting ~/.idlerc folder have been the solution.

相关文章