How to Install Pip on Debian 11

Install Pip on Debian 11

In this article, we will have explained the necessary steps to install Pip on Debian 11. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Pip is a package management system written in Python used to install and manage software packages. It is being used for installing and managing additional packages that are not available in the Python standard library.

Install Pip on Debian 11

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

sudo apt update
sudo apt upgrade

Step 2. Install Pip (Python Package Manager) on the Debian system.

  • Install Pip for Python3

Now install pip for Python 3 and all of its dependencies with the following command:

sudo apt install python3
sudo apt install python3-pip

Confirm that pip is installed:

pip3 --version
  • Install Pip for Python2

Now install pip for Python 2 and all of its dependencies with the following command:

sudo apt install python2

Next, download the Pip2 installation script:

curl --output

Then, run the downloaded script to install Pip2 to your system:


Verify the installation with this command:

pip2 --version

Step 3. Using Python Pip

Pip is used to manage python modules on the system. To install a package with pip, use pip install command. This will install the latest version by default:

pip3 install docker-compose

If you want to install a specific version of a package, specify it like this:

pip3 install docker-compose==1.46.0

To uninstall a package use the command below:

pip uninstall package_name

To list all options available with Pip, run the following command:

pip3 --help


  pip3  [options]

  install                     Install packages.
  download                    Download packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  check                       Verify installed packages have compatible dependencies.
  config                      Manage local and global configuration.
  search                      Search PyPI for packages.
  cache                       Inspect and manage pip's wheel cache.
  wheel                       Build wheels from your requirements.
  hash                        Compute hashes of package archives.
  completion                  A helper command used for command completion.
  debug                       Show information useful for debugging.
  help                        Show help for commands.

That’s all you need to do to install the Pip Python on Debian (Bullseye). I hope you find this quick tip helpful. For further reading Python on Debian’s system, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.