The comment by @xicocaio should be highlighted.
tkinter is python version-specific in the sense that sudo apt-get install python3-tk
will install tkinter exclusively for your default version of python. Suppose you have different python versions within various virtual environments, you will have to install tkinter for the desired python version used in that virtual environment. For example, sudo apt-get install python3.7-tk
. Not doing this will still lead to No module named ' tkinter'
errors, even after installing it for the global python version.