是否可以在Python 2.5和Ubuntu上安装IDLE
Ubuntu 软件中心提供 IDLE 2.6 及更高版本。如果我必须使用 Python 2.5(因为 Google App Engine 兼容性),是否仍可以使用 IDLE?我当然假设 IDLE 版本号有必要与 Python 版本号相同。
目前,由于未找到 _tkinter,我对 IDLE 的调用失败。同样,当我尝试以交互方式执行 import _tkinter 时,也找不到它。然后我继续安装 Tcl、Tk 和 python-tk 以及提供的 IDLE 版本之一(没有一个被标记为 2.5),但 _tkinter 仍然没有被导入。
Ubuntu Software Center offers versions of IDLE numbered 2.6 and upwards. If I have to use Python 2.5 (because of Google App Engine compatibility), will it be possible to still use IDLE? I am of course assuming that the there is some necessity for the IDLE version number to be the same as the Python version number.
Presently, my invocations of IDLE fail because of _tkinter not being found. Likewise it is not found when I try to do an import _tkinter interactively. I then proceeded to install Tcl and Tk and python-tk and one of the IDLE versions being offered (none were labelled 2.5) but _tkinter still does not get imported.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你的问题是 tkinter 安装在与 IDLE 使用的 Python 版本不同的版本中。请参阅此处的讨论。
I think your problem it that tkinter is installed in a different version of Python than IDLE is using. See this discussion here.