Monday, February 9, 2026
HomeLanguagesHow to Install Tkinter in Windows?

How to Install Tkinter in Windows?

In this article, we will look into the various methods of installing Tkinter on a Windows machine.

Note: Python already comes bundled with Tkinter. But if you still face any error with Tkinter, follow along with the article for manual installation.

Prerequisite:

For PIP Users: 

Open up the command prompt and use the below command to install Tkinter:

pip install tk

The following message will be displayed once the installation is completed:

installing tkinter using pip

To verify the installation use the tk._test() function. Use the below screenshots for reference:

Python3




import tkinter
tkinter._test()


Output:

verifying Tkinter installation

For conda Users:

Conda users can open up the Anaconda Power Shell and use the below command to install Tkinter:

conda install -c anaconda tk

You will get the following message once the installation is completed:

installing Tkinter using conda

To verify the installation run the below code:

Python3




import tkinter
tkinter._test()


Output:

verifying Tkinter installation

RELATED ARTICLES

2 COMMENTS

Most Popular

Dominic
32493 POSTS0 COMMENTS
Milvus
126 POSTS0 COMMENTS
Nango Kala
6866 POSTS0 COMMENTS
Nicole Veronica
11991 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12086 POSTS0 COMMENTS
Shaida Kate Naidoo
7001 POSTS0 COMMENTS
Ted Musemwa
7241 POSTS0 COMMENTS
Thapelo Manthata
6953 POSTS0 COMMENTS
Umr Jansen
6939 POSTS0 COMMENTS