install tkinter pip3 code example Example 1: pip install tkinter pip install tk Example 2: pip install tkinter python -m pip install tk