Reputation: 2800
I have Python 3.5.1 for Windows (official python.org installer) installed and it seems to be missing tkinter. For example:
C:\Users\kostya>python
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:38:48) [MSC v.1900 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from tkinter import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'tkinter'
Does anyone have an idea about were I can download the package?
Upvotes: 4
Views: 3344
Reputation: 16912
If using Windows, open settings and got to Apps and features:
Select Modify
.
The click Modify
(again) and then check the [x] Tcl/Tk
box.
Upvotes: 0
Reputation: 19144
The installer has an option "[X] install tkinter, IDLE, turtle". It should be on by default, but you might have clicked it off. If you run the installer again, you should see an option to repair. That should get you an option to see if the box is checked. Must sure it is and 'repair'.
Upvotes: 5