I connected to the remote server (google cloud VM instance - Centos7) with PyCharm from my Windows computer and wanted to execute the code using the remote computer's python3.8.8 via PyCharm. However, I got the error that says
File "/usr/local/lib/python3.8/tkinter/init.py", line 36, in
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
I tried to do some different pip installs (pip install python3-tkinter, pip install python3-tk, pip install python3.8-tkinter, etc.) and output of
"pip install python3-tkinter" is
Package python3-tkinter-3.6.8-18.el7.x86_64 already installed and latest version Nothing to do.
Is this tkinter for python3.6?
How can I fix this error?