You are getting this error because you have not installed tkinter locally.
You can run the install command to download and install tkinter.
For Debian systems (like Ubuntu):
sudo apt-get install python3-tk
For Fedora you can use:
sudo dnf install python3-tkinter
If you wish to get an in-depth understanding about python in general you should check out this video: