Forum Stats

  • 3,767,820 Users
  • 2,252,720 Discussions
  • 7,874,337 Comments

Discussions

Upgrade Pip on Oracle Linux 7

4071175
4071175 Member Posts: 1
edited Sep 14, 2019 7:10PM in Python

How can I properly upgrade to a newer version of pip on Oracle Linux 7 after installing from the oracle-epel-release-el7 repo using yum?

I setup the epel release using this command:

sudo yum install -y oracle-epel-release-el7 oracle-release-el7

I then enabled the ol7_developer_EPEL yum repo and installed python-pip using the following commands:

sudo yum install python-setuptools

sudo yum install python-pip

This installs pip 8.1.2. And running the command pip --version shows that it is installed fine... The only problem is I need a newer version of pip and setuptools for another pip package I need to install. (It looks like the newest version elsewhere is pip 19+).

Normally, you can upgrade pip using the following command:

pip install --upgrade pip

However, when I try this, it breaks pip... Is there a better way to get / upgrade to a more recent version using yum?

Answers