-
Notifications
You must be signed in to change notification settings - Fork 3k
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
pip install --upgrade pip breaks pip, still #5432
Comments
How to Reproduce: sudo apt install python-pip pip install --upgrade pip pip --version |
Hey @jmdugan! Do the instructions in #5221 (comment) help? |
@pradyunsg thank you, the same output: [J] also tried sudo apt purge python-pip then, reinstall, and it's still gives: Traceback (most recent call last): |
it seems the pip you installed in a unsupported manner (as you overwrote the system managed one) is in a location thats different from the system one, thus it keeps overriding, please check your dist and site packages folder for git installs matching the undesired ones that break your pip binary |
You probably don't have the directory where the new pip is installed in your PATH. I think one of Ubuntu/Debian patches to pip is to install to |
Scratch that, the patch was about installing to |
Closed in favor of #5599 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Environment
Description
I ran "pip install --upgrade pip"
now pip breaks, every time:
[J]~/bin >pip --version
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in
from pip import main
ImportError: cannot import name main
I tried "sudo apt remove python-pip" and a full autoremove, and re-installed pip, and it's still broken
Another ticket, from April 16 is now closed, relates to the same error message
#5240
How do we downgrade or fix this?
Expected behavior
How to Reproduce
Output
The text was updated successfully, but these errors were encountered: