How To Install PIP on Linux Server

How To Install PIP on Linux Server

How To Install PIP on Linux Server : Pip is the package management system for Python, used to install and manage software packages written in Python. Pip is the similar tool like the bundle, npm, composer in another programming language.

Step 1 – Install PIP

You can install pip with two methods, both methods are described below.

Install pip using easy_install

Easy Install is a python module available with setuptools. This is also used to manage, download, build, and install python modules.

$ easy_install pip

Install pip using python script

Similarly, you can also use pip installation script. Download the script on your using wget or curl, then run the script with appropriate python version for which you need to install pip.

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

$ python get-pip.py     
$ python3 get-pip.py      # For specific python version 

Step 2 – Verify Installation

Check the install version of pip on your system using -V command line switch.

$ pip -V     
$ pip3 -V        # For specific python version 

To view a list of helpful commands.

$ pip --help

Step 3 – Installing Packages with PIP

Pip provides a simple command to install or uninstall packages on your system. Pip uses the following command to install any packages on your system.

$ pip install package-name

Also, you can easily remove the package:

$ pip uninstall package-name

Pip can also take the input from a file for the number of packages to install for a specific application. Add all the required packages name with their version with a properly formatted file like requirements.txt file and execute the following command:

$ pip install -r requirements.txt

Reference: https://en.wikipedia.org/wiki/Pip_(package_manager)

Was this Tutorial helpful? Help others share on Facebook, Twitter, and Google Plus!

 
Enjoyed this video?
How To Install PIP on Linux Server
"No Thanks. Please Close This Box!"