Site icon installvirtual

How to install pip on linux / python pip

How to install pip on linux

In this tutorial I will show you how to install pip on linux.

pip is a package management system used to install and manage software packages written in Python. Many packages can be found in the Python Package Index (PyPI).

Python 2.7.9 and later (on the python2 series), and Python 3.4 and later include pip (pip3 for Python 3) by default.

pip is a recursive acronym that can stand for either “Pip Installs Packages” or “Pip Installs Python”.

Source: Wikipedia

Requirements

I am using centos 7 for this demo so you must have centos 7 up and running.

Installation

In this step, we will install pip using yum. So, before installing pip using yum package manager we need to install epel repo. Let’s install it.

yum install epel-release -y

You might also like: How to install Piwik on centos 7

Now we had installed epel repo now we can install pip using yum package manager.

yum install python-pip

Installing with get-pip.py

Now I will show you how you can install pip with binaries.

wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py

To check the usage of pip execute the following command

pip -h

To check the version of pip execute the following command

pip -V

To install package using pip execute the following command

pip install package-name

Read Also: How to install Vagrant on Ubuntu 16.04
Read Also: How to install glances system monitoring tool

If you got some issues installing pip please feel free to comment below.

Exit mobile version