An Error Message Is Displayed During python3-tk Installation
Symptom
When the python3-tk dependency is installed, the following error message is displayed:
Solution
Copy the missing file py_compile.py to the /usr/lib/python3.7 directory and reinstall the Python.
cp /usr/local/python3.7.5/lib/python3.7/py_compile.py /usr/lib/python3.7
Replace /usr/local/python3.7.5/lib/python3.7/py_compile.py with the actual path of the file.