【问题标题】:tkinter not found in python-3.8 while it is working in python-3.5tkinter 在 python-3.8 中未找到,而它在 python-3.5 中工作
【发布时间】:2020-11-02 22:30:18
【问题描述】:

我刚刚在 ubuntu 上安装了 python-3.8.3。当 tkinter 在 python-3.5 上工作时,我收到错误 import _tkinter # If this failed your Python may not be configured for Tk ModuleNotFoundError: No module named '_tkinter' on python-3.8.3。我做了sudo apt-get install python3-tk,但问题仍然存在。

【问题讨论】:

标签: python-3.x tkinter


【解决方案1】:

https://stackoverflow.com/a/51114470/12977390

哦...也许你应该尝试一下:

sudo apt install python3-tkinter

我确实使用 fedora linux,python3-tk 不起作用,但 '-tkinter' 可以。 告诉我是否成功

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-03-04
    • 2018-09-10
    • 1970-01-01
    • 2020-04-16
    • 2016-06-02
    • 2017-08-13
    • 1970-01-01
    相关资源
    最近更新 更多