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:

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

Python
import tkinter
tkinter._test()

Output:

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.

Similar Reads

Prerequisite:

Python PIP or conda (Depending upon your preference)...

For PIP Users:

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

For conda Users:

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

Install Tkinter in Windows, Mac or Ubuntu – FAQs

How to Install tkinter in Anaconda?...