Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Upgrade Pip on Oracle Linux 7

4071175Aug 23 2019 — edited Sep 14 2019

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?

Comments

Sergio-Oracle

$ sudo python -m pip install --upgrade pip

Collecting pip

  Downloading https://files.pythonhosted.org/packages/30/db/9e38760b32e3e7f40cce46dd5fb107b8c73840df38f0046d8e6514e675a1/pip-19.2.3-py2.py3-none-any.whl (1.4MB)

    100% |████████████████████████████████| 1.4MB 700kB/s

Installing collected packages: pip

  Found existing installation: pip 8.1.2

    Uninstalling pip-8.1.2:

      Successfully uninstalled pip-8.1.2

Successfully installed pip-19.2.3

[opc@ow ~]$ sudo python -m pip --version

pip 19.2.3 from /usr/lib/python2.7/site-packages/pip (python 2.7)

1 - 1

Post Details

Added on Aug 23 2019
1 comment
7,283 views