-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 uninstall
fails when called in the package's source dir
#6703
Comments
Maybe amend the error in this case to say |
@pfmoore I think your edited message is definitely an improvement (and would have saved me some time), but I would go even further. What about something more instructive, like It seems like the only time someone would ever bump up against this message is if they were in a similar situation to me. I may be wrong, but uninstalling from the current directory like It seems that most users just assume – like I did ;-) – that |
Maybe 'your computer' would be better than 'system library'? Iteration on your suggestion @reynoldsnlp :
Is it clearer? |
I have an issue related to this one. With |
After change in #7955 you should not get this package unless your PYTHONPATH includes current working directory. |
Environment
Description
I installed a local package,
spam
, usingpython3 -m pip install --user .
. If I try to uninstall my package when the package folder is in the current directory, I get the following:The uninstall completes successfully when I run it from a different directory:
Expected behavior
I did not expect
uninstall
to be sensitive to the contents of the local directory. If this is the expected behavior for technical reasons, I would change thestderr
messageCan't uninstall 'spam'. No files were found to uninstall.
to be more helpful in indicating that the failure could be because there is a local folder with the target package's name.The text was updated successfully, but these errors were encountered: