Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 2 pip[2] uninstall pip removes /usr/bin/pip3 #11015

Closed
1 task done
elibroftw opened this issue Apr 7, 2022 · 1 comment
Closed
1 task done

Python 2 pip[2] uninstall pip removes /usr/bin/pip3 #11015

elibroftw opened this issue Apr 7, 2022 · 1 comment
Labels
project: <downstream> When the cause/effect is related to redistributors type: bug A confirmed bug or unintended behavior

Comments

@elibroftw
Copy link

elibroftw commented Apr 7, 2022

Description

we have pip2 and pip3 installed on our machines. If we remove pip from pip2, then /usr/bin/pip3 is also removed. python3-pip is not removed so installing python3-pip without force does not reinstate /usr/bin/pip3.

And sudo apt remove python-pip does not work because "Package 'python-pip' is not installed, so not removed"

Expected behavior

/usr/bin/pip3 should be left alone when uninstalling python2's pip

pip version

20.3.4

Python version

Python 2.7

OS

Ubuntu-20.04

How to Reproduce

root@3a7bea9922a2:/home/jenkins# pip3 -V
pippip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
root@3a7bea9922a2:/home/jenkins# pip -V
pip 20.3.4 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
root@3a7bea9922a2:/home/jenkins# pip2 -V
pip 20.3.4 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
root@3a7bea9922a2:/home/jenkins# pip uninstall pip -y
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Found existing installation: pip 20.3.4
Uninstalling pip-20.3.4:
  Successfully uninstalled pip-20.3.4
root@3a7bea9922a2:/home/jenkins# pip3 -V
bash: /usr/bin/pip3: No such file or directory
root@3a7bea9922a2:/home/jenkins# 

Output

No response

Code of Conduct

@elibroftw elibroftw added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Apr 7, 2022
@pradyunsg
Copy link
Member

Since this involves Python 2 and Ubuntu (which is based on Debian), I'll recommend you report this issue to the Ubuntu or Debian projects, with reportbug python3-pip (their reporting documentation). You can link to this issue in your bug report.

Closing this, since we don't support Python 2 upstream and this seems to involve Debian's packaging of pip and/or Python 2 provided by them.

@DiddiLeija DiddiLeija added project: <downstream> When the cause/effect is related to redistributors and removed S: needs triage Issues/PRs that need to be triaged labels Apr 10, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
project: <downstream> When the cause/effect is related to redistributors type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants