TkInter not working in fresh install of Python 2.7 on Windows 10

Posted by apprenticeharper on 2016-03-22 22:57

After installing ActivePython- on a fresh copy of Windows 10, TkInter python fails to initialise with

File "C:\Python27\lib\lib-tk\", line 1814, in __init__ = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
C:/Python27/lib/tcl8.5 C:/lib/tcl8.5 C:/lib/tcl8.5 C:/library C:/library C:/tcl8.5.18/library C:/tcl8.5.18/library

Looking in C:/Python27/, I can see that tcl8.5 with init.tcl are actually installed in C:/Python/tcl/tcl8.5 not in C:/Python/lib/tcl8.5. That is, in a /tcl/ subdirectory, not the /lib/ subdirectory.

Copying the contents of the /tcl/ subdirectory into the /lib/ subdirectory seems to fix this, but surely I shouldn't have to do that.

Is this a bug in recent ActivePython installers? I didn't have this problem last time I did a fresh install, but that was a year ago or so.

harleyh | Sun, 2016-06-05 07:01

just want to say thanks. What you said fixed the problem