Rather than a package management utility, Pip can create a completely isolated environment for the Python application. In this tutorial, you will learn about the installation of Pip on the Debian 11 Linux system.


This tutorial assuming that you already have installed Python 3 on your system. Next login to the Debian 11 system with sudo privileged account access. Users have fresh installed Debian 11, can follow the initial server setup instructions.

Installing Pip for Python 3

You need to install separate Pip versions for Python3 and Python2. As you already have Python3 installed your system. Open a terminal with a sudo privileged account and run the below command to install Pip for Python3 on Debian 11 Linux system. The following command will install Pip3 for Python3: Once the installation is completed successfully, check the Pip3 version by executing: You may see a different Pip3 version on your system. Now, Pip3 is ready to use on your system.

Installing Pip for Python 2

Python 2 is reached to end of life and is no more maintained. Also, it is not installed default on Debian 11 Linux. We suggest using Python 3 for your new applications. But if your existing application still requires Python 2, then you can install it from default repositories. To install Python2.7 packages type: Now, install Pip for Python 2. Use the following command to download the Pip2 installer on your system. Then run the downloaded Python script with python2 binary. The above command will install and configure Pip for Python2 on your system. To verify the installation and check installed Pip2 version, type:


This tutorial helps you to install Pip for Python3 on Debian 11 Linux. Additionally provided the instructions for installing Pip for Python2. You can follow these instructions to create an isolated environment.