how to find out if python library tkinter is installed code example Example: how to install tkinter sudo apt-get install python3-tk