Search code examples
pythonlinuxtkintermoduleimporterror

ImportError: No module named _tkinter in Python 2.7.13


I am running RedHat 4.1.2 offline and trying to get _tkinter working for Python 2.7.13. I have Tcl/tk 8.4 installed, but it doesn't seem to be working right. libtcl8.4.so is located in /usr/lib64/ and I'm not sure if that's related, but I figured I would mention it. Here is the error when I try import Tkinter.

Python terminal output


Solution

  • Perhaps you could try a package manager such as Anaconda and install Tkinter.

    This post may help.