install python-tk python2 only for user code example Example: pip install tkinter python -m pip install tk