If I try to install pip for Python 2 using sudo apt-get install python-pip, it throws this error message:

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:

Is the only solution to this issue installing pip via get-pip.py or are there other workarounds?

1 Answer 1


Python 2 support was dropped for Bullseye. Downloading it directly from upstream should still work (at least, as long as Python 2 itself is available in Bullseye...).

Another solution which might work (I haven’t tried this particular scenario) is to add the Buster repositories and install python-pip from there. This isn’t recommended in general, but if you’re comfortable tracking testing, it shouldn’t cause any major difficulties.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .