Pip is the package installer for Python. You can use pip to install packages from the Python Package Index and other indexes.

In this guide, we will install the latest version of Pip on Debian 9.

Deploying your cloud server
If you have not already registered with Cloudwafer, you should begin by getting signed up. Take a moment to create an account after which you can quickly deploy your cloud servers.

Once you have signed up, log into your Cloudwafer Client Area and deploy your Cloudwafer cloud server.

Updating System Packages

It is recommended that you update the system to the latest packages before beginning any major installations. Issue the command below:

sudo apt-get update && sudo apt-get upgrade

Installing Pip for Python 2
In cases where the project you are working on is only compatible with Python version 2, you can use the following steps to install Pip.

Issue the command below to install pip with its dependencies for Python2:

sudo apt install python-pip

After installing Pip in the above step, issue the command to verify our installation by checking the version installed:

pip --version

Installing Pip for Python 3
To install Pip for Python version 3, issue the command below to install pip with its dependencies:

sudo apt install python3-pip

After installing Pip in the above step, issue the command to verify our installation by checking the version installed:

pip --version

You can use Pip to upgrade the pip package by issuing the command below:

pip install --upgrade pip

pip3 install --upgrade pip

To learn more about pip, check the official pip usage documentation.