Phyton Why is there no tkinter distribution found?

I am having a problem during the installation of tkinter. I have version 2.7.11. I entered the pip install tkinter on dos but it shows the following message:

collecting tkinter

Could not find a version that satisfies the requirement tkinter (from versions:) No matching distribution found for tkinter

I have successfully installed flask with the same procedure, but for tkinter it is showing problem. How can I get rid of this problem?

Answer:1

You should install

apt-get install python-tk

This should solve your issue

Answer:2

Follow this guide to install "tkinter". However now with Python version 3.1 onwards, it is part of the standard python distribution.

You can also install it using sudo apt-get install python3-tk-dbg, if you are in virtualenv. (Same can be done for normal installation, not just virtualenv)

Answer:3

I had to install python3-tk manually before it worked (via apt-get)

Answer:4

to find your package run:

sudo yum search python|grep tk

mine was:

yum install python3-tkinter.x86_64

Answer:5

the below answer in for Windows:

after installing Tk in your windows machine by following the instructions mentioned in the following link (https://tkdocs.com/tutorial/install.html#installwin), import tkinter as tk (for python3) or import Tkinter as tk (for python2). FYI - 'Tkinter' has been renamed as 'tkinter' in python3. It worked well for me.

Answer:6



I hit this issue about two years ago when I first implemented our SWIG bindings. As soon as we exposed a large amount of code we got to the point where SWIG would output C++ files so large the ...

I hit this issue about two years ago when I first implemented our SWIG bindings. As soon as we exposed a large amount of code we got to the point where SWIG would output C++ files so large the ...

I'm looking to implement data synchronization between servers and distributed clients. The data source on the server is mysql with django on top. The client can vary. Updates can take place on either ...

I'm looking to implement data synchronization between servers and distributed clients. The data source on the server is mysql with django on top. The client can vary. Updates can take place on either ...