Knowledge Base
MilesWeb / Web Hosting FAQ

Installing Pip on Ubuntu 16.04 LTS

Approx. read time : 3 min

Pip is a popular tool used to install and manage Python packages. Most of its users are happy with its capabilities of handling binary packages over the easy_installed packages manager, as Pip allows 3rd party package installations. Mostly, Python comes with Pip as a default, but in this tutorial, we will show how to install and check the Pip version as well as some commands for using Pip on Ubuntu 16.04.

Prerequisite :

All these instructions are specific for an Ubuntu 16.04 LTS server, where we are logged in as root.

# Steps to install and verify Pip

1) First of all, we have to ensure that all packages are up-to-date. Run the following command and you will get an output of any package getting their update.

2) Now, install Pip with cURL and Python. Downloading with cURL command shows the latest version of Pip.

3) The next step is to verify the installation of Pip.

It gives the output as :

This way you can install and verify Pip.

Now, let’s learn some basic Pip commands.

To install Libraries

Using the following commands, Pip can install 3rd party packages like Django, Tensorflow, Numpy, Pandas, etc.

To search for Libraries

Using command lines you can also search for other libraries in Python repository. For example, we are taking Django packages, so the search command will show a similar list as shown below :

To uninstall a library

In case you don’t need a library then you can uninstall easily using the following command :

To install Python resources

Many times, Python packages have requirements.txt file, incase you see this file, then you can run the following command to install all libraries in that package.

Also Read :

1) How to Install Node.js on Ubuntu 16.04

2) A Guide to Install and Configure Mod_Security on Ubuntu 16.04 Server

Sonam Wagh
With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.
Need help? We’re always here for you.
Register Your Free Domain Name
OFFER EXPIRES IN
04
min
59
sec