Can't import tkinter (or Tkinter)
Some compilers have tkinter preinstalled. For example, if you use IDLE tkinter is preinstalled. As much as I know, if you use IDLE, you have to click a box in order to install tkinter.If you are not using IDLE, check whether tkinter/Tkinter is included in your Site Packages folder. Consider reinstalling the compiler/interpreter you are using.After you made sure it is installed the syntax you have to use depends on the version of Python you are using.I am not quite sure for Python 2, but I think you write:
import Tkinter
For Python 3 you write:
import tkinter
or the more often used:
from tkinter import *