How to install tkinter on windows?

801    Asked by amit_2689 in Salesforce , Asked on May 15, 2021

Does it work like the other libraries where we use the pip to install a library?

Answered by Bella Blake

You can install the tkinter download windows by following the below-mentioned steps:-

Install Tkinter for Python (for Windows):

Firstly download the Community Edition of ActivePython for Windows and make sure you're downloading a 3.1 or newer version, not a 2.x version.

After downloading run the installer, and follow along. This will end up with a fresh install of ActivePython, located in, e.g. C:python32. Go to the Windows command prompt, or the Start Menu's "Run..." command, you should then be able to run a Python shell via:

% C:python32python

The above step will give you the Python command prompt. From the prompt, enter these two commands:

>>> import tkinter

>>> tkinter._test()

The above step will pop up a small window; the first line at the top of the window should say "This is Tcl/Tk version 8.5"; make sure it is not 8.4!



Your Answer

Interviews

Parent Categories