The python3-pip package installs /usr/bin/pip3, so simply invoke it as pip3, and not pip.

That of course, means you're going to use Python 3 version.

For Python 2 version, install python2-pip and launch it as either pip2, or simply pip.

I hope it's needless to say that you shouldn't be later using pip as root, as this is going to ruin your system sooner or later. Set up a virtualenv and use pip there.

Answer from Danila Vershinin on Stack Exchange
🌐
Red Hat
access.redhat.com › solutions › 1519803
How to install pip on Red Hat Enterprise Linux? - Red Hat Customer Portal
August 5, 2024 - Install the pip from SCL as root · # subscription-manager repos --enable rhel-server-rhscl-7-rpms # yum install python27-python-pip · Switch to a normal user and check the pip · $ scl enable python27 bash $ which pip $ pip -V · Note: When ...
🌐
CyberITHub
cyberithub.com › how-to-install-pip3-utility-on-linux-rhel-centos-7-8-easy-steps
How to Install PIP3 utility on Linux(RHEL/CentOS 7/8){Easy Steps} | CyberITHub
March 6, 2021 - In case it is not installed you can use yum install epel-release -y command to install it. You can verify the pip3 installation by querying the package details from RPM DB using rpm -qa | grep -i python3-pip command as shown below.
🌐
nixCraft
cyberciti.biz › nixcraft › howto › centos › linux: install pip client to install python packages
Linux: Install pip Client To Install Python Packages - nixCraft
June 10, 2021 - First, turn on EPEL repo for RHEL / CentOS Linux. Next, type the following yum command under RHEL / CentOS / Fedora Linux to install python-pip package: # yum -y install python-pip Sample outputs:
🌐
Python Packaging
packaging.python.org › guides › installing-using-linux-tools
Installing pip/setuptools/wheel with Linux Package Managers — Python Packaging User Guide
On EPEL 7, you can install pip and wheel like so: ... Since EPEL only offers extra, non-conflicting packages, EPEL does not offer setuptools, since it’s in the core repository. Enable the PyPA Copr Repo using these instructions 1. You can install pip and wheel like so: ... To install pip, wheel, and setuptools, in a parallel, non-system environment (using yum) then there are two options:
🌐
LinuxConfig
linuxconfig.org › home › installation of pip the python packaging tool on rhel 7 linux
Installation of PIP the Python packaging tool on RHEL 7 Linux
October 17, 2018 - Once setuptools package is installed we can now proceed with the actual PIP installation. Here we assume that python is already installed on your Redhat 7 Linux system. [root@rhel7 ~]# wget https://bootstrap.pypa.io/get-pip.py [root@rhel7 ~]# python get-pip.py Downloading/unpacking pip Downloading pip-1.5.6-py2.py3-none-any.whl (1.0MB): 1.0MB downloaded Installing collected packages: pip Successfully installed pip Cleaning up...
🌐
Joey D's Mind Share
dissmeyer.com › 2017 › 10 › 15 › how-to-install-pip-python-packaging-tool-on-rhel-7-linux
How to install PIP (Python packaging tool) on RHEL 7 Linux
October 20, 2017 - Assuming that Python is already ... system, execute the following in order: yum -y install epel-release yum -y install python-setuptools wget https://bootstrap.pypa.io/get-pip....
Find elsewhere
🌐
SharadChhetri
sharadchhetri.com › install-pip-centos-rhel-ubuntu-debian
How To Install pip3 / pip2 In Linux - Sharad Chhetri
December 10, 2024 - We have already written post on “Install EPEL repo on CentOS 7 / RHEL 7” with more details. Below given command will install EPEL repo on CentOS 7 / RHEL 7. ... After installing the EPEL repo . Now install the pip .
🌐
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 ...
🌐
UnixArena
unixarena.com › 2019 › 06 › how-to-install-pip-on-rhel-7-centos-7.html
How to install pip on RHEL 7 / CentOS 7 ? - UnixArena
October 13, 2024 - Cautious: “get-pip.py” does not coordinate with OS native package manager. 4. Install pip using python.
🌐
TecMint
tecmint.com › home › python › how to install pip to manage python packages in linux
How To Install PIP to Manage Python Packages in Linux
August 10, 2023 - Unluckily, pip is not packaged in official software repositories of RHEL-based distributions such as CentOS Stream, Rocky and AlmaLinux. So you need to enable the EPEL repository and then install pip using the yum package manager.
🌐
Red Hat
developers.redhat.com › blog › 2018 › 08 › 13 › install-python3-rhel
How to install multiple versions of Python on Red Hat Enterprise Linux | Red Hat Developer
February 27, 2024 - In addition, for installing the pip package installer, add on the -pip extension to the version of python being installed, for example: ... $ sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms $ yum group install "Development Tools" ...
🌐
Medium
linuxtechlab.medium.com › install-python-pip-on-ubuntu-centos-rhel-fc9d7f2d758d
Install Python PIP on Ubuntu & CentOS/RHEL | by Shujat Husain | Medium
June 9, 2021 - (Also read: Using yum to download packages without installing them) To install PIP on CentOS machines, we need to have the EPEL repository installed on our machines. Use the appropriate links among the following based on your OS to install EPEL repository, RHEL/CentOS 8 · $ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm · RHEL/CentOS 7 ·
🌐
Stack Overflow
stackoverflow.com › questions › 57323467 › how-to-install-pip-for-python-3-7-on-rhel
How to install pip for Python 3.7 on RHEL - Stack Overflow
August 2, 2019 - I am not able to find a repository for Python 3.7 with pip for RHEL. Please suggest one. ... $ sudo subscription-manager repos --enable rhel-server-rhscl-7-rpms $ sudo yum install python37-python-pip
🌐
Xmodulo
xmodulo.com › install-pip-linux.html
How to install pip on Linux
$ sudo yum install python-pip # for Python2 $ sudo yum install python3-pip # for Python3 · To install pip on old CentOS/RHEL system, first enable EPEL repository, and then run:
🌐
Stack Overflow
stackoverflow.com › questions › 46651393 › use-pip-to-manage-two-versions-of-python-2-7-on-rhel7
Use pip to manage two versions of python 2.7 on RHEL7 - Stack Overflow
October 9, 2017 - The problem arises when I try to install pip for the Python 2.7.14 or any libraries (as you will see in a little bit). ... [root@VMW01 bin]# easy_install pip Searching for pip Best match: pip 9.0.1 Adding pip 9.0.1 to easy-install.pth file Installing pip script to /usr/local/bin Installing pip3 script to /usr/local/bin Installing pip3.5 script to /usr/local/bin Using /usr/local/lib/python3.6/site-packages Processing dependencies for pip Finished processing dependencies for pip
🌐
Python Packaging
packaging.python.org › en › latest › guides › installing-using-linux-tools
Installing pip/setuptools/wheel with Linux Package Managers - Python Packaging User Guide
August 26, 2021 - On EPEL 7, you can install pip and wheel like so: ... Since EPEL only offers extra, non-conflicting packages, EPEL does not offer setuptools, since it’s in the core repository. Enable the PyPA Copr Repo using these instructions [1]. You can install pip and wheel like so: ... To install pip, wheel, and setuptools, in a parallel, non-system environment (using yum...
🌐
Simplified
simplified.guide › python › pip-install-on-centos-rhel
How to install pip on CentOS Stream or Red Hat Enterprise Linux
Installing pip on CentOS Stream or Red Hat Enterprise Linux makes it possible to install Python packages from PyPI when the required module or tool is not available from the distribution repositories. That is a common next step when bootstrapping developer tooling, creating isolated project environments, or testing Python packages that ship faster than the base operating-system package set. On current RHEL-family releases, pip is delivered through dnf and RPM packages rather than bootstrapped with get-pip.py.