CentOS 8 uses dnf now instead of yum, but that is not your issue.

You are using an underscore (_) when you wanted to use a hyphen (-).

dnf install python2-devel

The release package for the okay repository seems to be located here (there is no okay-release-1-1.noarch.rpm, I only saw okay-release-1-2.noarch.rpm and okay-release-1-3.noarch.rpm)

Answer from GracefulRestart on Stack Exchange
🌐
GitHub
github.com › ansible › ansible › issues › 80193
Unable to run dnf or yum modules in Python3 venv with Ansible 2.10 · Issue #80193 · ansible/ansible
March 10, 2023 - Summary I am trying to run a playbook in a Python3 venv that should install a package using yum. I have explicitly specified the ansible_python_interpretor to be used as python2. However, during playbook run, I am observing that it is at...
Author   ansible
Discussions

"No match for argument: python2-dnf" on Fedora 30.
Environment: OS (printf "$(uname -srm)\n$(cat /etc/os-release)\n"): Linux vs-glb-test-node-06 5.0.17-300.fc30.x86_64 #1 SMP Mon May 20 15:36:26 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Ver... More on github.com
🌐 github.com
6
May 24, 2019
python2-dnf used instead of python3-dnf (Fedora 30)
SUMMARY Fedora 30 obsoleted the package python2-dnf. When the module package or dnf is used, it wants to run the command dnf install -y python2-dnf. This fails since this package is not present any... More on github.com
🌐 github.com
16
April 4, 2019
Building Qubes-ISO - Fedora 32 - dnf error python2-sh: Unable to find match
So far so good, but when I run the following command (taken from the guide): sudo dnf install perl-Digest-SHA rpmdevtools rpm-build dialog rpm-sign python2-sh dpkg-dev debootstrap devscripts I get the error: Error: Unable to find a match: python2-sh Is as simple as that the Qubes-Builder i... More on forum.qubes-os.org
🌐 forum.qubes-os.org
0
0
September 21, 2020
ovirt 4.4 on Fedora 30 - Users - oVirt List Archives
Hello everyone new test of 4.4 ... (Red Hat 9.3.1-2)]). Please install `python2-dnf` package or ensure you have specified the correct ansible_python_interpreter.", "rc": 1, "results": [], "stderr": "Error: Unable to find a match: python2-dnf\n", "stderr_lines": ["Error: ... More on lists.ovirt.org
🌐 lists.ovirt.org
September 5, 2020
🌐
GitHub
github.com › kubernetes-sigs › kubespray › issues › 4802
"No match for argument: python2-dnf" on Fedora 30. · Issue #4802 · kubernetes-sigs/kubespray
May 24, 2019 - => {"changed": false, "cmd": "dnf install -y python2-dnf", "msg": "Error: Unable to find a match", "rc": 1, "stderr": "Error: Unable to find a match\n", "stderr_lines": ["Error: Unable to find a match"], "stdout": "Last metadata expiration check: 0:00:18 ago on Fri 24 May 2019 03:07:03 PM UTC.\nNo match for argument: python2-d nf\n", "stdout_lines": ["Last metadata expiration check: 0:00:18 ago on Fri 24 May 2019 03:07:03 PM UTC.", "No match for argument: python2-dnf"]} Anything else do we need to know: There is only a package python3-dnf in Fedora 30 and no python2-dnf.
Author   kubernetes-sigs
🌐
GitHub
github.com › ansible › ansible › issues › 54855
python2-dnf used instead of python3-dnf (Fedora 30) · Issue #54855 · ansible/ansible
April 4, 2019 - SUMMARY Fedora 30 obsoleted the package python2-dnf. When the module package or dnf is used, it wants to run the command dnf install -y python2-dnf. This fails since this package is not present anymore. This should point to python3-dnf. ...
Author   ansible
🌐
Qubes OS
forum.qubes-os.org › user support › general
Building Qubes-ISO - Fedora 32 - dnf error python2-sh: Unable to find match - General - Qubes OS Forum
September 21, 2020 - Hi, I would like to build a Qubes-OS 4.0.3 ISO. I follow the guide: except I do not do it on Qubes-OS, because currently I run it on a Ryzen 3 dual core. So, I installed Fedora 32 on another laptop. So far so good, but when I run the following command (taken from the guide): sudo dnf install perl-Digest-SHA rpmdevtools rpm-build dialog rpm-sign python2-sh dpkg-dev debootstrap devscripts I get the error: Error: Unable to find a match: python2-sh Is as simple as that the Qubes-Builder i...
🌐
oVirt
lists.ovirt.org › archives › list › users@ovirt.org › thread › URZCTP6N3RE4TVQBRAQKO3E5TU36HYHM
ovirt 4.4 on Fedora 30 - Users - oVirt List Archives
September 5, 2020 - Hello everyone new test of 4.4 on Fedora 30: Prepare Vm fails with {"attempts": 10, "changed": false, "cmd": "dnf install -y python2-dnf", "msg": "Could not import the dnf python module using /usr/bin/python (2.7.18 (default, Apr 21 2020, 18:49:31) [GCC 9.3.1 20200408 (Red Hat 9.3.1-2)]). Please install `python2-dnf` package or ensure you have specified the correct ansible_python_interpreter.", "rc": 1, "results": [], "stderr": "Error: Unable to find a match: python2-dnf\n", "stderr_lines": ["Error: Unable to find a match: python2-dnf"], "stdout": "Last metadata expiration check: 2:38:48 ago on Fri 08 May 2020 12:16:25 PM MST.\nNo match for argument: python2-dnf\n", "stdout_lines": ["Last metadata expiration check: 2:38:48 ago on Fri 08 May 2020 12:16:25 PM MST.", "No match for argument: python2-dnf"]} Is this due to Fedora 30 being based on RH7?
🌐
Red Hat
bugzilla.redhat.com › show_bug.cgi
Full Text Bug Listing
October 12, 2020 - Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla · RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue ...
Find elsewhere
Top answer
1 of 6
48

You have to enable the EPEL repo, use:

yum --enablerepo=extras install epel-release

This command will install the correct EPEL repository for the CentOS version you are running.

After this you will be able to install python-pip.

2 of 6
11

I was going crazy about the same issue. The reason why yum couldn't find python-pip was that it is not called python-pip anymore. Starting with EPEL Version 7 it is renamed to identify the python version. On my centOS machine i can find now the following python*-pip packages.

[root@asdasdasdasdsa ~]# yum info python*-pip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.rz.uni-frankfurt.de
 * epel: mirrors.mit.edu
 * extras: mirror.23media.de
 * updates: ftp.plusline.de
Available Packages
Name        : python2-pip
Arch        : noarch
Version     : 8.1.2
Release     : 5.el7
Size        : 1.7 M
Repo        : epel/x86_64
Summary     : A tool for installing and managing Python 2 packages
URL         : http://www.pip-installer.org
License     : MIT
Description : Pip is a replacement for `easy_install
            : <http://peak.telecommunity.com/DevCenter/EasyInstall>`_.  It uses mostly the
            : same techniques for finding packages, so packages that were made
            : easy_installable should be pip-installable as well.

Name        : python34-pip
Arch        : noarch
Version     : 8.1.2
Release     : 5.el7
Size        : 1.7 M
Repo        : epel/x86_64
Summary     : A tool for installing and managing Python3 packages
URL         : http://www.pip-installer.org
License     : MIT
Description : Pip is a replacement for `easy_install
            : <http://peak.telecommunity.com/DevCenter/EasyInstall>`_.  It uses mostly the
            : same techniques for finding packages, so packages that were made
            : easy_installable should be pip-installable as well.
🌐
Red Hat
bugzilla.redhat.com › show_bug.cgi
1696404 – Force Ansible to use Python 3 (python2-dnf used instead of python3-dnf)
Red Hat Bugzilla – Bug 1696404 · This site requires JavaScript to be enabled to function correctly, please enable it · Privacy Contact FAQ Legal
🌐
YouTube
youtube.com › silent solution
Fix Error: Unable to find a match: python RHEL 8/CentOS 8 - YouTube
This Video Show How to Fix Error: Unable to find a match: python RHEL 8/CentOS 8.No match for argument: python-pip ,Error: Unable to find a match: python-pi...
Published   January 24, 2021
Views   3K
🌐
GitHub
github.com › OpenSCAP › openscap › issues › 1368
There is no python-devel on RHEL 8 · Issue #1368 · OpenSCAP/openscap
June 24, 2019 - Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Last metadata expiration check: 0:42:49 ago on Mon 24 Jun 2019 03:11:10 AM EDT. Package make-1:4.2.1-9.el8.x86_64 is already installed. No match for argument: python-devel Error: Unable to find a match
Author   OpenSCAP
🌐
Techglimpse
techglimpse.com › home › articles › linux › yum error: unable to find a match: python-pip [fix]
Yum Error: Unable to find a match: python-pip [Fix] - Techglimpse
May 1, 2022 - # yum install python-pip Extra Packages for Enterprise Linux 8 - Next - x86_64 106 kB/s | 206 kB 00:01 No match for argument: python-pip Error: Unable to find a match: python-pip
🌐
Reddit
reddit.com › r/fedora › python 'unable to find a match: python3-tk/python3-dev'
r/Fedora on Reddit: Python 'Unable to find a match: python3-tk/python3-dev'
November 5, 2019 -

I'm trying to get PyAutoGui installed on Fedora. I was able to install the package fine, but it needs these dependencies, which won't install. I get these error messages:

'Unable to find a match: python3-tk'

'Unable to find a match: python3-dev'

Does this mean I don't have the right repositories installed? How do I fix it? Thanks.

🌐
GitHub
github.com › aws › aws-mwaa-local-runner › issues › 227
build-image failed saying there's no python 37 in AmazonLinux2023 · Issue #227 · aws/aws-mwaa-local-runner
March 16, 2023 - #12 4.195 Last metadata expiration check: 0:00:03 ago on Thu Mar 16 00:53:33 2023. #12 4.215 No match for argument: python37 #12 4.225 Error: Unable to find a match: python37 ------ executor failed running [/bin/sh -c chmod u+x /systemlibs.sh && /systemlibs.sh]: exit code: 1
Author   aws
🌐
GitHub
github.com › jalan › pdftotext › issues › 49
Unable to install poppler-cpp-devel and python-devel on RHEL 8 · Issue #49 · jalan/pdftotext
November 1, 2019 - Hi Jalan As per official documentation on pdftotext webpage below libraries are required to be installed on REDHAT. sudo yum install gcc-c++ pkgconfig poppler-cpp-devel python-devel redhat-rpm-conf...
Author   jalan
🌐
CERN
root-forum.cern.ch › t › root-dependencies-can-not-install-in-centos8 › 42010
ROOT dependencies can not install in CentOS8 - ROOT - ROOT Forum
October 26, 2020 - When I install the dependencies root in CentOS8, it occurs the errors: what I input: sudo yum install gcc-gfortran pcre-devel \ > mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel \ > fftw-devel cfitsio-devel graphviz-devel \ > avahi-compat-libdns_sd-devel openldap-devel python-devel \ > libxml2-devel gsl-devel and the error: No match for argument: glew-devel No match for argument: graphviz-devel No match for argument: avahi-compat-libdns_sd-devel No match for argument:...