我试着用Tkinter创建一个窗口,但它不起作用…
我在VSCode中使用MacOS和Python3.7.3。
也许你可以通过这个来帮助我:
from tkinter import *
root = tk.Tk()
root.mainloop()我尝试了许多这样的代码版本,但每次我运行这些程序时,他都会告诉我:
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'我真的很想使用Tkinter,但我现在不知道该怎么做…我希望你能帮助我!
感谢‘s
发布于 2020-05-08 17:03:31
我推荐从官方网站重新安装python。
https://stackoverflow.com/questions/61675532
复制相似问题