ImportError: No module named _tkinter, please install the python-tk package

I got this the other day and was most confused because I already had python-tk installed. Turns out the error message is a bit misleading. If you are running python 3 you have to install the python3 version of tkinter with the command:

sudo apt-get install python3-tk

Hope this helps.

One thought on “ImportError: No module named _tkinter, please install the python-tk package

  1. Reply

    Yu

    if you use the python2.X ,you can write into the ” sudo apt-get install python2.X-tk”, it will work.

Leave a Reply