tkinter python3.8 install pip code example Example 1: how to install tkinter sudo apt-get install python3-tk Example 2: install tkinter pip install tk