python 报错为ModuleNotFoundError: No module named 'tkinter'

 

问题内容:

  File "/usr/lib64/python3.8/turtle.py", line 107, in <module>
    import tkinter as TK
ModuleNotFoundError: No module named 'tkinter'

 

 

我们只需要在终端中输入   :sudo zypper install python38-tk
(此方法目前只在opensuse tumblewed 试验过)

posted @ 2021-10-02 10:01  荧光の微冷  阅读(843)  评论(0编辑  收藏  举报