ModuleNotFoundError: No module named ‘Tkinter’ Windows 不要用 import tkinter 用from tkinter import * from tkinter import * root = Tk() w = Label(root, text="Hello, world!") w.pack() root.mainloop() mac python 3.10版本 brew install python-tk@3.10 python 3.9版本 brew install python-tk@3.9