How to Install Pip 3 or 2 on Debian 11 Bullseye Linux

Pip stands for Pip Installs Python and is a tool for Python programming language to install various modules. It is an explicit replacement and indirect successor for the older one easy_install from the Python setup tools.

In a direct comparison, the syntax of pip is based on that of other package administrators, such as APT. Furthermore, even with pip, dependencies on other modules are resolved directly, ie additionally required modules are installed directly. Using it we can install packages from Python Package Index (PyPI) and other repositories.

There is also the option of loading modules directly from the version control systems such as Git, Mercurial, or Subversion and then installing them.

Here we will learn the steps to install pip for both Python 2 (pip) and Python 3 (pip3) on Debian 11 Bullseye or 10 using command terminal.  

Installing pip for Python 3 or 2 on Debian 11 or 10

1. Run system update

Refresh the system repository to let it know the latest version of the packages available in the base repo.

sudo apt update


2. Install Pip3 for Python 3 on Debian 11 or 10

Although you would already have python3 on your, if not then first install the same.

sudo apt install python3

And to get the Pip 3 for the installed Python3 run:

sudo apt install python3-pip


3. Install Pip2 for Python 2

Those who want to use the Pip 2 on their system can go for the below-given commands:

sudo apt install python2

Pip2 cannot be installed directly using the APT package manager because it is not available anymore in the base repo. Hence, we have to download and install it manually using its Python package.

sudo apt install curl
curl --output
sudo python2

pip2 --version


4.  Check the installed versions

To confirm what are versions now available on your system, simply run the check the versions of the installed pythons.

python3.9 --version
python2 --version
pip --version
pip2 --version


5. Let’s install something using pip

You can check out all the packages available to install via PIP from its official webpage. However, to use it we can go for the following syntax:

pip install package-name

For example:

For Python3:

pip3 install "TextStatistic"

For Python2:

pip install "TextStatistic"



Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.