How Do You Install pip on a RHEL Server in AWS?

Problem scenario
You want to install pip on a RedHat Enterprise Linux server in AWS.  What do you do?

Solution
Prerequisites
This assumes that Python has been installed. If it has not, run this command:
sudo yum -y install python3


Procedures

You may want to try these two commands first:

sudo find / -name pip
sudo find / -name pip3

If the above did not help you, run these three commands:
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
sudo python3 get-pip.py
# use python if python3 is not found
sudo ln -s /usr/local/bin/pip /usr/bin/pip

Leave a comment

Your email address will not be published.