You probably need to install it
sudo apt-get install python3-tk
I have been using Tkinter for a long time. Why don't you try it and let me know if it worked?
try: # for Python2 from Tkinter import * ## notice capitalized T in Tkinter except ImportError: # for Python3 from tkinter import * ## notice lowercase 't' in tkinter here
Here is the link to the link and here is the document
Better check out the versions as suggested here :
if sys.version_info[0] == 3: # for Python3 from tkinter import * ## notice lowercase 't' in tkinter here else: # for Python2 from Tkinter import * ## notice capitalized T in Tkinter
Or you will get an ImportError: No module named tkinter
d-coder Sep 18 '14 at 6:26 2014-09-18 06:26
source share