Thursday, November 26, 2015

Linux: Install pip Client To Install Python Packages

Pip is the command which help us to install python packages/modules.

pip is very useful for web development as well as for sys-admins who manages cloud computing based resources created Openstack, Rackspace, AWS, Google and other cloud computing service providers. The pip command can be installed in two different methods

Method #1: Install pip for all users

The pip command is not installed by default. You need to install it as per your linux flavour.

First, turn on EPEL repo for RHEL / CentOS Linux. Next, type the following yum command under RHEL / CentOS / Fedora Linux to install python-pip package:

# yum -y install python-pip

Debian / Ubuntu Linux installation

Type the following apt-get command to install

# apt-get install python-pip
OR
$ sudo apt-get install python-pip


Method  #2: Install Pip with Curl and Python

 
Note: If you installed Pip with the previous Option, then SKIP this step.
We can also use curl and python to download and install Pip.

curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py

Step #3: Verify The Installation
 
View a list of helpful commands:

pip --help

 

No comments: