【初学者】ImportError: No module named 'Tkinter'
如题,我在windows.vista上安装了python3.3,一路顺利安装下来了。上面也能运行了hello world。
但是当我运行如下代码的时候,提示找不到模块Tkinter
from Tkinter import *
root = Tk()
w = Label(root, text="Hello, world!")
w.pack()
root.mainloop()
----------F5执行后,错误信息如下-------------------------
>>>
Traceback (most recent call last):
File "C:/Python33/temp/my_try.py", line 1, in <module>
from Tkinter import *
ImportError: No module named 'Tkinter'
>>>
[解决办法]
from tkinter import *