In this article, we will look into the various methods of installing Tkinter on a Windows machine.
Note : For Python 3 tkinter should already be included with your Python installation. However, if it’s not available or you’re encountering issues, you can install or reinstall it using the following steps:
For Windows:
If you don’t have tkinter installed, the easiest way is to reinstall Python from the official website and ensure that the tkinter package is included during installation.
- Download the latest Python version from python.org.
- During installation, ensure the "Tcl/Tk and IDLE" option is selected.
However, if you want to ensure all dependencies are managed via pip (though tkinter is part of the Python standard library in most cases), you can install the tk package using pip.
For PIP Users:
Open up the command prompt and use the below command to install Tkinter:
pip install tkThis installs the Python tk bindings, which is what tkinter depends on. 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:
import tkinter
tkinter._test()
Output:

For conda Users:
Conda users can open up the Anaconda Power Shell and use the below command to install Tkinter:
conda install -c anaconda tkYou will get the following message once the installation is completed:

To verify the installation run the below code:
import tkinter
tkinter._test()
Output:
