Last Updated : 23 Jul, 2025
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.
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 tk
This 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:
Python
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 tk
You will get the following message once the installation is completed:
To verify the installation run the below code:
Python
import tkinter
tkinter._test()
Output:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4