# BGE: Import Error No Module Named “Tkinter”

I want to add some GUI without simulating 2D Controls in 3D, and I think Tkinter module is easy enough to use. I set up a simple scene to try my idea, but it seems not work. Neither import tkinter nor import Tkinter, as I tried out, works probably. Any suggestions? Thanks.

• only standard python modules are included in blender, not sure this will work but you can install python and force Blender to use it over the bundled one. – user2816 Jun 7 '16 at 3:32
• @root how to make blender use a certain environment? – Page David Jun 7 '16 at 3:39
• by default blender will try to use the system installed python, installing python will put it's installation path in the PATH environment variable and blender reads this variable at startup, also the python version you install must be the same version like the one blender has. I'm not exactly sure though ,maybe you can ask a question about this. – user2816 Jun 7 '16 at 3:43
• @root should I try to add /usr/bin/env to PATH? – Page David Jun 7 '16 at 3:49
• @root Sorry, I am rendering an animation, I don't want to interrupt it, I will try out this method after it is finished.(it seems to be work). Thanks. – Page David Jun 7 '16 at 3:55