tkinter是python 默认库无需安装,导入失败是包的名称写错了,可能叫Tkinter,或者tkinter多试一试
import tkintertop = tkinter.Tk()top.mainloop()