You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to Install pip in OL7 to Enable Python Modules Installation

Applies To:

Oracle Cloud Infrastructure - Version N/A and later

Goal:

Need to install pip to install additional python modules in OL7.

Solution:

In Oracle Linux 7 OCI instances, the pip module is not installed by default. pip is installed by executing the command:

# yum list python2-pip python3-pip
Loaded plugins: langpacks, osmsplugin, ulninfo
This system is receiving updates from OSMS.
Installed Packages
python3-pip.noarch        9.0.3-8.0.1.el7        @ol7_latest
Available Packages
python2-pip.noarch        8.1.2-14.el7           ol7_developer_epel-x86_64
#

# yum install python2-pip  ## for Python2 environment
OR
# yum install python3-pip  ## for Python3 environment

For python2-pip, it needs the EPEL repository enabled. EPEL is normally an enabled software source for OSMS, so it should be enabled already. If it is not enabled already, then manually go into OCI UI/Console to edit the OSMS software sources, or just manually edit and save

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!