Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python 3.5 for Windows missing tkinter

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?

like image 814
Konstantin Tarashchanskiy Avatar asked Oct 29 '25 07:10

Konstantin Tarashchanskiy


1 Answers

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'.

like image 194
Terry Jan Reedy Avatar answered Oct 31 '25 00:10

Terry Jan Reedy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!