# Pip install tkinter fails, python 3.8.7, redhat 10.2.1-9

**URL:** <https://discuss.python.org/t/pip-install-tkinter-fails-python-3-8-7-redhat-10-2-1-9/16347>\
**Category:** Python Help\
**Created:** [June 8, 2022, 11:11am UTC](https://discuss.python.org/t/pip-install-tkinter-fails-python-3-8-7-redhat-10-2-1-9/16347 "2022-06-08T11:11:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![EarthBotV2](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@EarthBotV2](https://discuss.python.org/u/EarthBotV2)\
**Post date:** [June 8, 2022, 11:11am UTC](https://discuss.python.org/t/pip-install-tkinter-fails-python-3-8-7-redhat-10-2-1-9/16347/1 "2022-06-08T11:11:48Z")

</div>

```auto
$ pip install tkinter --user
ERROR: Could not find a version that satisfies the requirement tkinter (from versions: none)
ERROR: No matching distribution found for tkinter

$ python
Python 3.8.7 (default, Dec 22 2020, 00:00:00) 
[GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] on linux

>>> import tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tkinter'

$ python -m tkinter
/usr/bin/python: No module named tkinter

```

What is happening?! What happened to tkinter?!

---

<div class="post-metadata">

**Author:** ![rob42](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/rob42/32/8218_2.png) [@rob42](https://discuss.python.org/u/rob42)\
**Post date:** [June 8, 2022, 11:22am UTC](https://discuss.python.org/t/pip-install-tkinter-fails-python-3-8-7-redhat-10-2-1-9/16347/2 "2022-06-08T11:22:14Z")

</div>

With Debian based systems (such as I use) I need to…

```bash
sudo apt-get install python3-tk

```

… to use Tkinter.

I’m sure you’ll know the Redhat equivalent.

---

<div class="post-metadata">

**Author:** ![petersuter](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@petersuter](https://discuss.python.org/u/petersuter)\
**Post date:** [June 8, 2022, 4:37pm UTC](https://discuss.python.org/t/pip-install-tkinter-fails-python-3-8-7-redhat-10-2-1-9/16347/3 "2022-06-08T16:37:55Z")

</div>

> <https://stackoverflow.com/questions/58381198/how-do-i-install-tkinter-on-redhat>

---

<div class="post-metadata">

**Author:** ![EarthBotV2](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@EarthBotV2](https://discuss.python.org/u/EarthBotV2)\
**Post date:** [June 8, 2022, 6:00pm UTC](https://discuss.python.org/t/pip-install-tkinter-fails-python-3-8-7-redhat-10-2-1-9/16347/4 "2022-06-08T18:00:48Z")

</div>

Thank you! Problem solved! I followed the advice offered by Vineet Singh in the 13 Jun 2021 stackoverflow article:

> <https://stackoverflow.com/questions/58381198/how-do-i-install-tkinter-on-redhat>

```auto
> sudo yum search tkinter 
> sudo yum install python3-tkinter.x86_64

```

The yum asked to upgrade three packages:

```auto
 python-unversioned-command noarch 3.8.10-1.fc32 updates 11 k
 python3 x86_64 3.8.10-1.fc32 updates 28 k
 python3-libs x86_64 3.8.10-1.fc32 updates 7.4 M

```

The upgrade took about ten seconds. I then verified the install and verified that my python Telegram bot support is intact.

Out of curiosity, I wonder why pip was able to install pyTelegramBotAPI but not tkinter.

```auto
$ pip install pyTelegramBotAPI -- # works
$ pip install tkinter --user # fails

```

---

<div class="post-metadata">

**Author:** ![saaketp](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/saaketp/32/6703_2.png) [@saaketp](https://discuss.python.org/u/saaketp)\
**Post date:** [June 8, 2022, 7:25pm UTC](https://discuss.python.org/t/pip-install-tkinter-fails-python-3-8-7-redhat-10-2-1-9/16347/5 "2022-06-08T19:25:41Z")

</div>

> [@EarthBotV2](#):
>
> Out of curiosity, I wonder why pip was able to install pyTelegramBotAPI but not tkinter.

because there is no package called `tkinter` on [pypi.org](http://pypi.org)

`tkinter` is part of the standard library so it is not allowed to have a 3rd party package of the same name on pypi.
