-
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
Ignoring invalid distribution -ip #10452
Comments
When pip updates or deletes a package, it renames the package name by replacing the first letter with a The problem here is that pip is renaming its own package ( |
It happens during installation of pip but updating or deletation. |
There are a myriad of things can happen on Windows that make file deletion fail. We should add a message in the warning message to tell the user to delete those files manually. |
I see this with many packages on Windows 10 when I use the --force-reinstall option, which appears to be broken on Windows 10. One of the packages I see this with is cffi. It looks like a filename parsing bug because pip keeps generating new files in my site packages directory starting with -ffi, -fi, etc. |
Does anyone have a repeatable approach for generating such invalid distributions? |
Try to hard-crash pip during an uninstallation (something like |
No)) This issue happens during regular installation process. |
I was answering the question what is a repeatable approach to trigger this. It may not match your experience on hitting the bug, but is the most realiable way to reproduce the phenomenom. |
@uranusjr , actually one can just create necessary folders. But i cant consider this as "reproducable approach". |
This just happened to me. The requirements_dev.txt I tried installing had an old version of pip listed in it as a requirement and the installed failed as it couldn't remove the running pip command but left me in a state that a pip command would no longer work, then once I followed some repair steps, I started getting tons of warnings and found |
@snoopyjc, a quick way to fix this issue is to manually remove those folders. They are harmless. |
Also if I remember correctly recent pip versions would no longer complain about this (and would simply leave those trash folders there, for better or for worse). So I’ll close this. |
Yes that’s what I did - thanks!! |
Ignoring a problem does not solve the problem. |
Description
After installing pip via get-pip.py I obtain mystic packages starting from ~ in site packages directory.
Expected behavior
Installing pip on clear python without pip must not flood warnings and create error packages.
pip version
Python version
3.9
OS
Windows 10
How to Reproduce
Reproducing
Temporary solution
p.s.
sudo
is as temporary solution to #9527Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: