Install `python-pip` for Python 2.7.18 on Debian Bullseye

I have both Python 2.7.18 and Python 3.9.2 installed on my Debian GNU/Linux 11 (bullseye) x86_64 system. I tried installing the python-pip package for Python 2 via the official Debian repos, but it is obsolete and no longer available. Is there a way I can tweak Debian to get that package anyway? Here’s the warning message from APT:

Package python-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python3-pip

E: Package 'python-pip' has no installation candidate

Running the command python2 -m ensurepip --upgrade within Python 2 results in the following warning from Python’s part:

ensurepip is disabled in Debian/Ubuntu for the system python.

Python modules For the system python are usually handled by dpkg and apt-get.

    apt-get install python-<module name>

Install the python-pip package to use pip itself.  Using pip together
with the system python might have unexpected results for any system installed
module, so use it on your own risk, or make sure to only use it in virtual
environments.

Concluding question: How do I install python-pip for Python 2 on Debian without significantly increasing my system’s vulnerability?

Maybe you should consider using one or more virtual environments.

https://docs.python.org/3/library/venv.html