pip install tkinter
sudo apt-get install python3-tk
# for pip and windows, in cmd, write: pip install tk
pip install tk
import tkinter as tk obj = tk.Tk() # Creates a tkinter object label = tk.Label(obj, text="This is a text button")