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

pip doesn't uninstall packages outside sys.prefix #3352

Closed
kernc opened this issue Jan 11, 2016 · 4 comments
Closed

pip doesn't uninstall packages outside sys.prefix #3352

kernc opened this issue Jan 11, 2016 · 4 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@kernc
Copy link

kernc commented Jan 11, 2016

source ~/venvs/test/bin/activate
pip install --user some_package
pip uninstall some_package

produces the following error:

Not uninstalling some_package at /home/user/.local/lib/python3.4/site-packages, outside environment /home/user/venvs/test

It also implies no error by exiting with status code 0.

The users generally agree this behavior is unexpected and that pip should suggest to uninstall the user's library instead.

@kernc
Copy link
Author

kernc commented Jan 11, 2016

Related: #14, #2094, #1056.

@Ivoz
Copy link
Contributor

Ivoz commented Feb 13, 2016

Hmm, --user shouldn't really be valid inside a virtualenv'ed pip (a user location doesn't really make sense for a virtualenv environment).

So I think the error should be at the install stage. It should suggest to install without --user (or deactivate to the global environment).

@pradyunsg
Copy link
Member

Closing in favour of #4575.

@lock
Copy link

lock bot commented Jun 2, 2019

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.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

3 participants