python - ImportError: No module named 'Tkinter'' -
looking @ this link, when install python says tcl/tk/tkinter install, when run game in python, import error. have usual import statements well, it's still not working. looked @ this similar problem, answer isn't working me.
import simplegui import random tkinter import *
i assuming using python2.
try this
from tkinter import *
you putting wrong name module. work.
edit after comment
for python3 install python3-tk
, code work.
Comments
Post a Comment