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 uninstall refuses to uninstall packags from ~/.local/lib/ #5176

Open
mgedmin opened this issue Apr 5, 2018 · 2 comments
Open

pip uninstall refuses to uninstall packags from ~/.local/lib/ #5176

mgedmin opened this issue Apr 5, 2018 · 2 comments
Labels
type: enhancement Improvements to functionality

Comments

@mgedmin
Copy link

mgedmin commented Apr 5, 2018

  • Pip version: 9.0.3 (and also 10.0.0b2)
  • Python version: 2.7.14
  • Operating system: Ubuntu 17.10

Description:

I was trying to uninstall a package from my ~/.local/lib/python/site-packages and pip wouldn't let me:

What I've run:

$ pip uninstall tornado
Not uninstalling tornado at /home/mg/.local/lib/python2.7/site-packages, outside environment /home/mg/.venv

(/home/mg/.venv is a virtualenv created with --system-site-packages. ~/.venv/bin is in my $PATH.)

Note that pip from the virtualenv can install things into ~/.local/lib/ if I run pip install --user, it's just pip uninstall that seems to cause confusion.

(FWIW my first inclination was to run pip uninstall --user tornado, but pip uninstall doesn't accept --user.)

@piotr-dobrogost
Copy link

piotr-dobrogost commented Apr 5, 2018

Raised in the past in issue #3352
Generally the implementation of schemes (and user scheme more than others) in pip is broken since the beginning; see issue #4575.

@pradyunsg
Copy link
Member

I'm gonna let this stay open and resolve this as a part of #4575.

@pradyunsg pradyunsg added type: bug A confirmed bug or unintended behavior type: enhancement Improvements to functionality and removed type: bug A confirmed bug or unintended behavior labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvements to functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants