Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pip install tkinter [duplicate]

Tags:

python

I use pip install python-tk but have an error ERROR: Could not find a version that satisfies the requirement python-tk (from versions: none) ERROR: No matching distribution found for python-tk

like image 716
Duy_DEV_GenZ Avatar asked Dec 29 '25 14:12

Duy_DEV_GenZ


2 Answers

Tkinter isn't distributed through pip; if it didn't come pre-packaged with Python, you have to get it from elsewhere:

  • Ubuntu
sudo apt-get install python3-tk 
  • Fedora
sudo dnf install python3-tkinter
  • MacOS
brew install python-tk
like image 123
Emile Durkheim Avatar answered Jan 01 '26 05:01

Emile Durkheim


For Windows, check this checkbox during setup.

enter image description here

like image 45
Tobias Würth Avatar answered Jan 01 '26 07:01

Tobias Würth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!