ImportError: no module named Tkinter (Running python with NotePad++'s NppExec) ImportError: no module named Tkinter (Running python with NotePad++'s NppExec) tkinter tkinter

ImportError: no module named Tkinter (Running python with NotePad++'s NppExec)


The problem is simple -- the python command you are running does not have a module named Tkinter. The cause of the problem is more difficult to understand without more information. My first guess would be that NppExec is running a different version of python than you think it is running, and this version of python either doesn't have tkinter installed, or has it installed under a different name (python 2 is Tkinter and python 3 is tkinter).

Try using NppExec to run a script that does the following:

import sysprint sys.executableprint sys.path

The output from those commands should give you enough information to debug the problem.