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.

Answer from Zina on Stack Exchange
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.
🌐
Techglimpse
techglimpse.com › home › articles › linux › [centos 7]: yum install python-pip | no package python-pip available
[CentOS 7]: Yum install python-pip | No package python-pip available - Techglimpse
November 30, 2022 - This tutorial will help you to solve the installation error No package python-pip available during yum install python-pip...
🌐
Linux Hint
linuxhint.com › install-python-pip-centos7
Install Python PIP on CentOS7 – Linux Hint
In this article, I will show you how to install Python 2 PIP and Python 3 PIP on CentOS 7. Let’s get started. First update the package repository cache of yum package manager with the following command: ... The yum package repository cache should be updated. Python PIP is not available in ...
🌐
Linuxize
linuxize.com › home › python › how to install pip on centos 7
How to Install Pip on CentOS 7 | Linuxize
February 20, 2019 - Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges . To install pip on your CentOS machine, follow these steps: Pip is not available in CentOS 7 core repositories.
🌐
GitHub
github.com › geerlingguy › ansible-role-pip › issues › 1
python-pip (and python2-pip) not found on centos 7 · Issue #1 · geerlingguy/ansible-role-pip
June 19, 2017 - I had to add the following to find pip name: install epel release package repo if not present yum: name=epel-release state=present Perhaps split the tasks in debian vs RHEL?
Author   geerlingguy
🌐
Stack Overflow
stackoverflow.com › questions › 66814644 › installing-pip-in-centos-7
python - Installing pip in centOS 7 - Stack Overflow
When I installed python3.8, It also installed pip Requirement already up-to-date: pip in /usr/local/lib/python3.8/site-packages (20.1.1) but when I do which pip I get an error · /usr/bin/which: no pip in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin)
🌐
GitHub
github.com › csirtgadgets › bearded-avenger › issues › 270
problem: centos73 does not have python-pip available by default (python2|3-pip) · Issue #270 · csirtgadgets/bearded-avenger
March 4, 2017 - Hi Wes, There might be an issue with system preparations installing packages through bootstrap.sh. On my CentOS, there was no python-pip available, even not with epel-release installed. IMHO, it should be python2-pip or python34-pip. I a...
Author   csirtgadgets
Find elsewhere
🌐
SharadChhetri
sharadchhetri.com › install-pip-centos-rhel-ubuntu-debian
How To Install pip3 / pip2 In Linux - Sharad Chhetri
December 10, 2024 - Doesn’t work in 5.4 yum install -y python-pip Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: cosmos.cites.illinois.edu * base: mirror.hmc.edu * extras: mirror.tocici.com * updates: mirrors.syringanetworks.net Setting up Install Process No package python-pip available. Nothing to do ... Excelent post. It worked perfectly on CentOS 7.
🌐
PLENIUM AMERICA
plenium.wordpress.com › 2019 › 11 › 13 › install-python-pip-on-rhel-centos-7
Install Python pip on RHEL/Centos 7 – PLENIUM AMERICA | plenium.com
December 7, 2021 - When you initially try to install pip you may get an error as below: # python --version Python 2.7.5 [root]# yum install python-pip No package python-pip available. Error: Nothing to do We need to install epel-release first: [root] # yum install epel-release Installed: epel-release.noarch 0:7-11 Next install pip: [root]# yum install python-pip For python3 use…
🌐
HostAdvice
hostadvice.com › how to › web hosting › centos › how to install python pip on centos 7
How To Install Python Pip On CentOS 7
May 31, 2022 - The modules provided for distribution are authenticated and should work flawlessly with CentOS 7. However, if there is no rpm package for the available modules you can utilize pip to install and configure python modules globally.
🌐
Python Packaging
packaging.python.org › guides › installing-using-linux-tools
Installing pip/setuptools/wheel with Linux Package Managers — Python Packaging User Guide
CentOS and RHEL don’t offer pip or wheel in their core repositories, although setuptools is installed by default. To install pip and wheel for the system Python, there are two options: Enable the EPEL repository using these instructions. On EPEL 7, you can install pip and wheel like so: ... ...
🌐
GitHub
github.com › dcos › dcos-ansible › issues › 18
python-pip package not found · Issue #18 · dcos/dcos-ansible
April 4, 2019 - This is an AWS universal installer cluster, get this for centos and rhel. FAILED! => {"attempts": 3, "changed": false, "msg": "No package matching 'python-pip' found available, installed or updated", "rc": 126, "results": ["No package matching 'python-pip' found available, installed or updated"]} The text was updated successfully, but these errors were encountered: Copy link ·
Author   dcos
🌐
Programmersought
programmersought.com › article › 67601360
No package python-pip available. Solution - Programmer Sought
When pip python installation package, given: You are using pip version 7.1.2, however version 19.3.1 is available You should consider upgrading via the 'python -m pip install --upgrade pip' command..