If you are running some Python application that requires Tkinter, you can get an error message "ImportError: No module named _tkinter, please install the python-tk package"
This error message means Tkinter module is not installed in your system.
To install Tkinter, you need to have an appropriate version of Python installed in your system. Open the Terminal and type "python" to check which version of Python your system is running.
If you don't have python, then install it:
Code: Select all
sudo apt-get install python
Code: Select all
sudo apt-get install python3
Code: Select all
sudo apt-get install python-tk
Code: Select all
sudo apt-get install python3-tk
To check whether Tkinter is installed and works correctly for python 2, type "python" in the Terminal and then import Tkinter, i.e.,
Code: Select all
$python
>>>import Tkinter
Code: Select all
Tkinter.Tk()
See how to install Tkinter without root privileges and how to install Tkinter on other versions of Linux:
https://stackoverflow.com/questions/478 ... for-python