Looks like they have removed support for Python 2.7 with the latest version of Pip.

https://lwn.net/Articles/843945/

If I pin the pip version to 20.3.4, it works fine.

Answer from Lakshmi Prabha Enjeti on Stack Overflow
🌐
devopszones
devopszones.com › 2020 › 04 › how-to-install-and-upgrade-pip-on.html
How to Install and upgrade PIP on CentOS 7 - devopszones
So you need to enable the EPEL repository and then install it like this. ... [root@devserver ~]# pip --version pip 20.0.2 from /usr/lib/python2.7/site-packages/pip (python 2.7) [root@devserver ~]#
🌐
Stack Overflow
stackoverflow.com › questions › 58984280 › pip-install-upgrade-pip-isnt-upgrading-pip
python - pip install --upgrade pip isnt upgrading pip - Stack Overflow
Just a remark: The pip package in CentOS is called python-pip, you should use sudo yum update python-pip instead of sudo yum update pip
Discussions

Unable to upgrade Pip on Python 2.7.5 - Stack Overflow
I'm trying to upgrade pip to the latest version on Python 2.7.5 on Centos 7. # python -m pip install --upgrade pip Collecting pip Using cached https://files.pythonhosted.org/packages/9e/24/ More on stackoverflow.com
🌐 stackoverflow.com
January 26, 2021
How do I install pip for python 3.7.11 on CentOS 7 - Stack Overflow
My goal is to install Python 3.7.11 offline on CentOS 7. First i installed Python 3.7.11 on CentOS 7 by using this official python package The install command was ./configure --enable-optimizations... More on stackoverflow.com
🌐 stackoverflow.com
upgrade pip and error on centOS7 - Stack Overflow
My system is CentOS7, I install python2.7.13, and then install pip. when I install pip7.0.1, it's ok. More on stackoverflow.com
🌐 stackoverflow.com
April 29, 2017
python - How do I install pip on CentOS? - Unix & Linux Stack Exchange
Core package repositories for CentOS 7 does not have python-pip. For that you need to enable an EPEL ("Extra Packages for Enterprise Linux") repository. You do that with ... Since Python 3.5, pip is already bundled with the python distribution, so you can just run python3.6 -m pip instead of pip. ... Also, you can do “python3 -m venv” instead of using pip to install virtualenv in the first place. ... I've installed epel, done yum update/upgrade... More on unix.stackexchange.com
🌐 unix.stackexchange.com
February 19, 2019
🌐
ThunderVM Blog
blog.thundervm.com › home › how to upgrade pip packages on centos, debian and ubuntu
How to Upgrade Pip Packages on CentOS, Debian and Ubuntu – ThunderVM Blog
June 3, 2023 - Upgrading pip packages is an important step in ensuring that your Python development environment is up-to-date and secure. By following the steps outlined in this post, you can upgrade pip packages on CentOS 7, CentOS Stream 8 and 9, Debian 9, 10 and 11, and Ubuntu 22, 20, and 18.
🌐
GitHub
gist.github.com › l3m › 0c78244634dd96119aede0ab5e6e125a
pip upgrade on CentOS 7 · GitHub
pip upgrade on CentOS 7 · This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters ·
🌐
Tencent Cloud
tencentcloud.com › document › product › 213 › 54595
Updating Some Image Pip Package Management Tools for CentOS 7
May 8, 2023 - The table below lists the CentOS 7 public images with updated pip. By default, these public images have Python 2 installed, which comes with pip 20.3.4 instead of pip 8.1.2. ... The upgrade has been performed in stages and finished on December 12, 2022. Instances purchased after the upgrade ...
🌐
Liquid Web
liquidweb.com › home › how to install pip on centos 7
How to Install Pip on CentOS 7 | Liquid Web
November 20, 2024 - The most recent version of Pip requires Python 3.7 or greater. If you are unable to upgrade your version of Python, here’s how you can install Pip on CentOS 7 for older versions:
🌐
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.
Find elsewhere
🌐
Bots!
tweenpath.net › upgrade-python-2-7-3-6-installing-pip-centos-7
Upgrade Python 2.7 to 3.6 and installing pip on CentOS 7 - Bots!
April 2, 2021 - Src: https://linuxize.com/post/how-to-install-python-3-on-centos-7/ https://www.liquidweb.com/kb/how-to-install-pip-on-centos-7/ Administrations Configurations (Linux) CentOS 7CnetOSPIPPythonPython 3.6 · Very good, it work. could you make the same with last version of python 3.10.x ... Perhaps I’ll do it someday! ... As you’re upgrading it’s pointless to keep the old version too, unless there is a necessity of having some backward compatibility of any other app using the older version
🌐
Stack Overflow
stackoverflow.com › questions › 76216108 › how-do-i-install-pip-for-python-3-7-11-on-centos-7
How do I install pip for python 3.7.11 on CentOS 7 - Stack Overflow
sudo yum update sudo yum install epel-release python-devel python-setuptools python-pip # Download get-pip.py: Download the installation script for pip using curl.
🌐
AZDIGI
azdigi.com › home › blog › linux server › how to install pip on centos 7
How to install PIP on CentOS 7 with 2 steps
January 13, 2026 - In this tutorial, AZDIGI will walk you through the steps required to install PIP on CentOS 7 using the package manager and cover some basics on installing and managing Python packages using PIP.
🌐
Linuxize
linuxize.com › home › python › how to install pip on centos 7
How to Install Pip on CentOS 7 | Linuxize
February 20, 2019 - In this tutorial we will walk through how to install Python Pip on CentOS 7 and cover the basics of how to install and manage Python packages with pip.
🌐
Stack Overflow
stackoverflow.com › questions › 43694981 › upgrade-pip-and-error-on-centos7
upgrade pip and error on centOS7 - Stack Overflow
April 29, 2017 - I have solved my problem by myself. I have tried install pip by get-pip.py, easy_install and source code. And easy_install was installed by setuptools. But the pip doesn't work. In the end, I install easy_install by distribute_setup.py and then install pip by easy_install. Pip works correctly now.
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to install pip on centos and rocky linux
How to Install Pip on CentOS and Rocky Linux
November 5, 2024 - Learn how to install Pip on CentOs and Rocky Linux to download and install packages from the Python Package Index (PyPI).
🌐
Python⇒Speed
pythonspeed.com › articles › upgrade-pip
Why you should upgrade pip, and how to do it
March 21, 2023 - manylinux2014 packages are built on CentOS 7. The motivation for each new variant is the end-of-life of each version of CentOS. And each new variant requires a corresponding new release of pip. You can learn more in PEP-571 and PEP-599. Whether you’re setting up a development environment or writing your Dockerfile, make sure you upgrade pip.
🌐
GreenCloud
green.cloud › home › greencloud documents › linux operating systems › how to instructions for installing pip on centos 9 stream
How to instructions for installing PIP on Centos 9 stream - GreenCloud Documentation
January 19, 2026 - In this tutorial, We will walk you through the steps required to install PIP on CentOS 7 using the package manager and cover some basics on how to install and manage Python packages using PIP.
🌐
RoseHosting
rosehosting.com › home › how to install pip on centos 7
How to install Pip on CentOS 7 | RoseHosting
December 12, 2022 - Where are you getting that pip9.0.1 rpm for python2.7 and centos? Reply · You can upgrade pip to the latest version available using the following command: pip install –upgrade pip Reply
🌐
Hivelocity
hivelocity.net › home › knowledge base articles › how to install pip on centos 7
How to Install PIP on CentOS 7 - Hivelocity Hosting
January 23, 2026 - In this guide we’ll be covering the process to install PIP on CentOS 7 using the command line.
🌐
GitHub
github.com › pypa › pip › issues › 5662
Cannot upgrade pip on centos · Issue #5662 · pypa/pip
July 27, 2018 - You should consider upgrading via the 'pip install --upgrade pip' command. # curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py # python get-pip.py Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/ Collecting pip Downloading ...
Author   pypa