No matching distribution found for tkinter windows

If you get an error message saying “Could not find a version that satisfies the requirement tkinter (from versions: none). No matching distribution found for tkinter”, can be frustrating and may prevent you from using Tkinter in your Python scripts. In this tutorial, we will learn how to resolve this error and successfully install Tkinter on a Linux system using either default package manager.

Resolved: No matching distribution found for tkinter

ERROR: No matching distribution found for tkinter

In this quick troubleshooting guide, I will try to help you to resolve this issue.

Solution

Most of the popular operating systems contain the `Tkinter` library in their default repositories. Which can be installed using the system’s package manager. Use one of the following commands to install the Python Tkinter library based on the operating system.

  • On Debian-based Linux (Ubuntu, Debian, Pop!_OS):
    sudo apt-get install python3-tk 
    
  • On Arch-based Linux systems:
    sudo pacman -S tk 
    
  • On CentOS, RedHat, and Oracle Linux systems:
    sudo yum install -y tkinter tk-devel
    
  • On Fedora-based Linux systems:
    sudo dnf install python3-tkinter
    

Hope the above commands help you to resolve the Tkinter installation issue on your system. Please feel free to provide your valuable suggestions in the comments.

Conclusion

In this tutorial, we learned how to resolve the error “No matching distribution found for tkinter” when trying to install Tkinter on a Linux system using pip. We explored several potential causes of this error and discussed different solutions, including upgrading pip, checking your internet connection and Python installation, and installing Tkinter using the package manager. With this knowledge, you should be able to successfully install Tkinter on your Linux system and use it in your Python scripts.

если версия python 2.7 к примеру то там надо писать Tkinter а не tkinter

  • Ссылка

по дефолту он всегда есть, какая версия python то?

  • Ссылка

плюсую товарища выше — ты установил python-tk, а он для второго питона. python3-tk нужно

gnunixon ★★★
()

  • Показать ответ
  • Ссылка

На будущее. Что бы не возникало казусов вроде смешивания пакетов python-tk и python3-tk, устанавливай питоновские пакеты через pip, а не через системный менеджер пакетов.

Aswed ★★★★★
()

  • Показать ответ
  • Ссылка

Ответ на:

комментарий
от fsb4000

Спасибо вам большое! Работает!!!!!!

mike15
()

автор топика

  • Ссылка

Ответ на:

комментарий
от Aswed

устанавливай питоновские пакеты через pip, а не через системный менеджер пакетов.

Совет от debiloida и полнейшего idiotes.

anonymous
()

  • Показать ответ
  • Ссылка

Ответ на:

комментарий
от anonymous

Куда уж мне до анонимусов на лоре. Смотри не увлекайся коментами, а то на математику опоздаешь.

Aswed ★★★★★
()

  • Ссылка

Ответ на:

комментарий
от gnunixon

$ sudo python3 -m pip install python3-tk
...
ERROR: Could not find a version that satisfies the requirement python3-tk (from versions: none)
ERROR: No matching distribution found for python3-tk

Можете подсказать, ЧЯДНТ?

zad1ra
()



Последнее исправление: zad1ra
(всего

исправлений: 1)

  • Показать ответ
  • Ссылка

29 июля 2022 г.

Ответ на:

комментарий
от zad1ra

Аналогичная проблема. Линукс вот какой:

root@porteus:/tmp# uname -a
Linux porteus 4.9.0-porteus #1 SMP PREEMPT Sun Dec 18 16:24:27 Local time zone must be set-- i686 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz GenuineIntel GNU/Linux

Как это лечить?

  • Показать ответ
  • Ссылка

Ответ на:

комментарий
от senglory

Ответ на:

комментарий
от vvn_black

Неа, не помогло:

root@porteus:/tmp# pip install tk
Collecting tk
  Downloading tk-0.1.0-py3-none-any.whl (3.9 kB)
Installing collected packages: tk
Successfully installed tk-0.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

root@porteus:/tmp# pip install python3-tk
ERROR: Could not find a version that satisfies the requirement python3-tk (from versions: none)
ERROR: No matching distribution found for python3-tk
root@porteus:/tmp# 

  • Показать ответ
  • Ссылка

Ответ на:

комментарий
от senglory

Ответ на:

комментарий
от vvn_black

Но python3-tk как не ставился , так и сейчас не ставится. Что у меня неправильно сделано?

  • Показать ответ
  • Ссылка

Ответ на:

комментарий
от senglory

Извинения, я затупил. Дистрибутивный python должен быть собран с поддержкой tk.

vvn_black ★★★★★
()



Последнее исправление: vvn_black
(всего

исправлений: 1)

  • Ссылка

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.

не удается установить tkinter. error: couldn’t find a version that satisfies the requirement tkinter. error: no matching distribution found from tkinter.

как поняла, не был скачан tkinter при установке python. как это исправить?


  • Вопрос задан

  • 225 просмотров

Пригласить эксперта

Если у Вас стоит Python версии 3.1 и выше, то Tkinter поставляется вместе с языком. Поэтому рекомендую поставить более новую версию python и проблема должна решиться.

Войдите, чтобы написать ответ


  • Показать ещё
    Загружается…

Минуточку внимания

Hi all

I would like to deploy python with my Delphi application to my customers. So, I downloaded and installed a Windows embeddable package of Python in a subdirectory \python of my project folder.

I set the following two lines in the OnCreate event handler of the main form:

PythonEngine1.SetPythonHome('\python');
PythonEngine1.LoadDLL;

With this setting I can execute Python scripts but I cannot import numpy (ImportError: No module named ‘numpy’)

I can import numpy from the command line, so it seems to be correctly installed:

C:\Data\Delphi10-3\TestPythonPerformance\python>python
Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>>

I also tested if P4D uses the correct Python distribution with:

import sys
print (sys.version)

and I get:    3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)]

The structure of the Python installation is as follows (under \python):

Scripts
share
Lib
    site-packages
        …
        matplotlib
        …
        numpy
        …
        pandas
        …

Do I need to set a module path that P4D finds the modules?

Another problem is that importing matplotlib (even on the command line) rises an error that tkinter is not installed. If I try to install tkinter I get an error: 

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

Thanks, Rolf

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Будильник для компьютера windows 10
  • Samsung nvme driver windows server 2019
  • Realtek 8822ce driver windows 10
  • Radeon rx550 windows 8
  • Keepassxc ssh agent windows