Solution: first run the following command to install the pkin3 version of Tkinter:
sudo apt-get install python3-tk
If you are prompted that the package cannot be found, update it first:
sudo apt-get update
sudo apt-get install python3-tk
I haven’t explained why I can’t find this package after reading it on stack overflow for a long time. In fact, I just need to update it first
Similar Posts:
- No module named _tkinter, please install the python-tk package solution summary
- Ubuntu Error: No module named ‘apt_pkg’ (Step-by-Step Tutorial)
- [Solved] Python Error: ModuleNotFoundError: No module named ‘tkinter’
- ImportError: No module named _tkinter, please install the python-tk package
- Idle can’t import Tkinter appears when idle is started
- [Solved] Python3 operate pymongo error: pymongo.errors.ConfigurationError
- The ‘brew link’ step did not complete successfully
- python: _tkinter.TclError: couldn’t recognize data in image file
- [Solved] Apt-get -f install Error: No apport report written because MaxReports is reached already Errors were…
- Python compiles and installs under Linux and reports an error: makefile: 1141: install