Install pip for Python2.7 in Debian 11 Bullseye
Created On: 2021-08-11
Python 2.7 is still in Debian 11 Bullseye. But the python-pip package, which used to provide pip for python2, is gone. To get back pip for python 2.7, start a shell and run
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py python2 get-pip.py
The command can be run as root user to install to system python2 site-packages, or as a normal user to install to current user's python2 site-packages.
To run pip for python2, you may run
python2 -m pip --version python2 -m pip help python2 -m pip install PKG_NAME