# Tk was renamed many versions ago, you should instead import tkinter from tkinter import Tk main = Tk()