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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -