`Ubuntu or other distros with Apt:
- sudo apt-get install python3-tk1
Fedora:
- sudo dnf install python3-tkinter1*
macOS:
- brew install python-tk1
Windows 10:
- Check the optional feature “tcl/tk and IDLE” during the Python installation
After installing Tkinter, you can import it in your Python code using import tkinter (for Python 3) or import Tkinter (for Python 2)