Skip to content

--system-site-packages venv --user install does not recognize requirement already satisfied in PYTHONUSERBASE and will not uninstall from there. #1500

Closed
@skyl

Description

@skyl
virtualenv --version  # 1.11.1
virtualenv pip-test --system-site-packages
source pip-test/bin/activate
pip --version  # 1.5.1
pip install requests==2.0
pip install -U requests --user  # installs 2.2.1 to ~/.local
pip install -U requests --user  # installs again even though already there
pip uninstall requests  # will uninstall in venv but not in PYTHONUSERBASE

I actually expected the --user install to fail with Will not install to the user site because it will lack sys.path precedence. I don't know why the above pip install -U requests --user installs at all (this is actually kinda' what I want). Given that it does install, I would expect the next call to report "Requirement already satisfied". But, it does not recognize and installs again. Uninstall in this scenario can not be made to uninstall from the PYTHONUSERBASE, it seems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: user schemeHandling of packages in user-specific directoriesauto-lockedOutdated issues that have been locked by automationtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions