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.
🌐
AskPython
askpython.com › home › fixed error: “package ‘python-pip’ has no installation candidate”
Fixed Error: "Package 'python-pip' has no installation candidate" - AskPython
April 10, 2025 - Not to worry – this common error can be easily fixed. The E: Package ‘python-pip’ has no installation candidate error occurs when trying to install Python packages through the system package manager (like apt or apt-get).
🌐
pip
pip.pypa.io › en › stable › installation
Installation - pip documentation v26.1.2
If your Python environment does not have pip installed, there are 2 mechanisms to install pip supported directly by pip’s maintainers: ... Python comes with an ensurepip module[1], which can install pip in a Python environment. ... More details about how ensurepip works and how it can be used, is available in the standard library documentation.
🌐
GitHub
github.com › geerlingguy › ansible-role-pip › issues › 24
CentOS 8 / EL 8, python-pip is not an available package · Issue #24 · geerlingguy/ansible-role-pip
October 28, 2019 - => {"changed": false, "failures": ["No package python-pip available."], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []} For CentOS 8 / EL 8, the correct package is python3-pip. I will fix this and make a PR. [vagrant@centos8 ~]$ sudo dnf install python3-pip Last metadata expiration check: 0:06:41 ago on Mon 28 Oct 2019 06:29:06 AM UTC.
Author   geerlingguy
🌐
Python Packaging
packaging.python.org › tutorials › installing-packages
Installing Packages - Python Packaging User Guide
If you’re on Linux and installed using your OS package manager, you may have to install pip separately, see Installing pip/setuptools/wheel with Linux Package Managers. If pip isn’t already installed, then first try to bootstrap it from the standard library: ... Run python get-pip.py. [2] ...
🌐
GeeksforGeeks
geeksforgeeks.org › linux-unix › how-to-fix-pip-command-not-found-in-linux
How to Fix "pip command not found" in Linux - GeeksforGeeks
July 23, 2025 - If you are getting an error message that pip is not found, it is possible that you do not have the pip package installed on your system. To install pip on Linux, you will need to use your distribution's package manager to install the python3-pip ...
Find elsewhere
🌐
NXP
community.nxp.com › t5 › Layerscape › troubles-with-ubuntu-20-04-2lts-E-Package-python-pip-has-no › td-p › 1318059
troubles with ubuntu 20.04.2lts E: Package 'python-pip' has no installation candidate - NXP Community
August 5, 2021 - This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: python3-pip · E: Package 'python-pip' has no installation candidate cp: cannot stat '/media/OK10xx-linux-fs/flexbuild/build/images/*': No such ...
🌐
Python.org
discuss.python.org › python help
Install `python-pip` for Python 2.7.18 on Debian Bullseye - Python Help - Discussions on Python.org
November 22, 2022 - Here’s the warning message from APT: Package python-pip is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from ...
Top answer
1 of 2
9

The package is called python3-pip. Python 2.7 is not shipped anymore with Ubuntu 20.04, nearly all python related packages are now called python3-*.

2 of 2
4

To get the Python 2 version of pip back, you can use get-pip, which is a single script that downloads and installs the latest version of pip (for Python 2 or 3, whichever version you run the script with):

$ curl -O https://raw.githubusercontent.com/pypa/get-pip/master/get-pip.py
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1824k  100 1824k    0     0  2211k      0 --:--:-- --:--:-- --:--:-- 2211k

$ python get-pip.py 
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
Collecting pip
  Using cached pip-20.1-py2.py3-none-any.whl (1.5 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.1
    Uninstalling pip-20.1:
      Successfully uninstalled pip-20.1
  WARNING: The scripts pip, pip2 and pip2.7 are installed in '~/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-20.1

Then add ~/.local/bin/ to your PATH (e.g. in your ~/.bashrc):

PATH=$HOME/.local/bin/:$PATH

After that you should have a working pip command for Python 2. Or use pip2 / pip2.7 if you want to make sure you're not targeting Python 3.

🌐
PyPI
pypi.org › project › pip
pip · PyPI
3 weeks ago - You can use pip to install packages from the Python Package Index and other indexes.
      » pip install pip
    
Published   May 31, 2026
Version   26.1.2
🌐
Python.org
discuss.python.org › python help
Why does my python not come with pip installed - Python Help - Discussions on Python.org
February 7, 2024 - I tried to download pygame but it kept saying " ‘pip’ is not recognized as an internal or externalcommand, operable program or batch file." Please help
🌐
pip
pip.pypa.io › en › stable › cli › pip_install
pip install - pip documentation v26.1.2
Accepts either “:all:” to disable all source packages, “:none:” to empty the set, or one or more package names with commas between them. Packages without binary distributions will fail to install when this option is used on them. ... Prefer binary packages over source packages, even if the source packages are newer. ... python -m pip install SomePackage # latest version python -m pip install 'SomePackage==1.0.4' # specific version python -m pip install 'SomePackage>=1.0.4' # minimum version Windows