Note, selecting 'python3-tk' instead of 'python3.9-tk' code example Example: ImportError: No module named _tkinter, please install the python-tk package sudo apt-get install python-tk