是否可以在Python 2.5和Ubuntu上安装IDLE

发布于 2024-10-10 00:21:49 字数 282 浏览 0 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷鸟归林 2024-10-17 00:21:49

我认为你的问题是 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文