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