2

If I try to install pip for python2 using sudo apt-get install python-pip, but it returns 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:
  python3-pip

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

3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.