我最近尝试在我的 macbook pro 上安装 python 3.2 和 IDLE 3。我成功安装了 python 3.2(例如,我可以从终端运行它),但是当我尝试安装 IDLE 3.2 时,我一定做错了什么,因为现在 IDLE 2.7 和 IDLE 3.2 在打开时立即崩溃,并显示消息“Python quit”出乎意料”,无论我是通过终端还是通过Finder打开它。有谁知道如何解决这个问题?我已经安装了正确的 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.
发布评论
评论(5)
尝试重命名或删除目录
~/.idlerc
,这大约是 Python 使用的唯一与 2.7 和 3.2 的 IDLE 相同的东西。如果这没有帮助,请准确说明您安装的 Python 3、OS X 的版本,并显示终止报告中的堆栈跟踪。更新:根据您提供的崩溃报告,Tk 似乎在菜单项初始化期间崩溃:
当 IDLE 与 10.7 上的 A/S Tcl/Tk 8.5 一起使用时,我没有看到任何类似问题的报告。 3,我自己无法在 10.7.3 上重现它。然而,Cocoa Tcl/Tk 8.5 并不是最强大的框架,在使用
US
或US Extended
以外的语言或输入法时,它可能容易出现问题。另一种可能性(更有可能)是,如果您正在使用某些第三方菜单增强应用程序或首选项面板(也许可以向菜单添加颜色)。如果这些建议不能帮助您隔离问题,我建议您在 Tcl Mac 邮件列表上询问 ([电子邮件受保护]
,存档于 http://dir.gmane.org/gmane.comp.lang.tcl.mac)。Try renaming or removing the directory
~/.idlerc
which is about the only thing used by Python that would in common to IDLE for 2.7 and 3.2. If that doesn't help, state exactly which Python 3 you installed, what version of OS X, and show the stack traces from the termination report.UPDATE: Based on the crash report you've supplied, it appears that Tk is crashing during its initialization of menu items:
I have not seen any reports of a similar problems when IDLE is used with A/S Tcl/Tk 8.5 on 10.7.3 and I haven't been able to reproduce it myself on 10.7.3. However, the Cocoa Tcl/Tk 8.5 is not the most robust framework out there and it may be susceptible to problems when using languages or input methods other than
US
orUS Extended
. Another possibility (more likely) is if you are using some third-party menu enhancement application or preference panel (to add colors to menus perhaps). If those suggestions don't help you to isolate the problem, I suggest you ask on the Tcl Mac mailing list ([email protected]
, archived at http://dir.gmane.org/gmane.comp.lang.tcl.mac).如果您运行的是 Mac OS X Lion,听起来您似乎被保存状态崩溃所困扰。您需要删除已保存的状态以使崩溃消失:
http://osxdaily.com/2011/07/17/delete-specific-application-saved-states-from-mac-os-x-10-7-lion-resume/
<一href="http://reviews.cnet.com/8301-13727_7-20083707-263/managing-mac-os-x-lions-application-resume-feature/" rel="nofollow">http://reviews.cnet.com/8301-13727_7-20083707-263/managing-mac-os-x-lions-application-resume-feature/
If you are running Mac OS X Lion, it sounds like you are being bitten by the saved-state crash. You need to delete the saved state to make the crash go away:
http://osxdaily.com/2011/07/17/delete-specific-application-saved-states-from-mac-os-x-10-7-lion-resume/
http://reviews.cnet.com/8301-13727_7-20083707-263/managing-mac-os-x-lions-application-resume-feature/
我有同样的问题。我运行 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.我遇到了同样的问题,在我的 MAC 上打开 IDLE 后会崩溃
我最终将我的计算机更新到操作系统 Yosemite。
和 python 的最新版本,但它仍然会关闭
它开始的原因是因为我试图更改某些键的首选项。
重置首选项修复了它!
我输入了 mc ~/.idlercidlerc2
:)
I had the same problem where IDLE would crash after I opened it on my MAC
I ended up updating my computer to OS Yosemite.
and the most updated version of python but it still would shut
the reason it started was because I tried to change the preferences for certain keys.
Resetting the preferences fixed it!
I typed mc ~/.idlerc idlerc2
:)
[已解决]我在这里使用了同样的问题:
优胜美地 10.10.2
python 3.4.2
从 http://www.activestate 下载并安装 ActiveTcl 8.5.17.0 版本解决了该问题.com/activetcl/downloads
最好的问候,
Tchê
[Solved] I had the same problem here using:
Yosemite 10.10.2
python 3.4.2
The issue was solved downloading and installing the ActiveTcl 8.5.17.0 version from http://www.activestate.com/activetcl/downloads
Best Regards,
Tchê