I'm using tkinter to build gui with my mac.normally I'm using python IDLE to run and test the code. I created a new file with .py extension and run it. it works properly. this is the code.
from tkinter import *
mywin = Tk();
mywin.title("window for mac")
This works fine
Then I tried to run the file using terminal and tried to launch the file with python launcher.at that time it gives following error
File "check.py", line 1, in <module>
from tkinter import *
ImportError: No module named tkinter
my python version is Python 2.7.10. some says it is corruption on python. I tried to install python with home-brew also.but didn't get any result.
MACused python version2.Xand idle run with3.X. Try on terminalpython3 blahblah.pywindowNo module named tkinteris python2.X error !No module named Tkinteris python3.X error. Are you sure ?can't display gui without any 'mainloop'!