Skip to content

pip install -U does not remember whether a package was installed with --user #1056

Closed
@pfmoore

Description

@pfmoore

If you do

pip install --user dist
pip install -U dist

then the upgrade will uninstall the original installation from the user site-packages and install the upgraded version in the system site-packages. It should not do this, but rather should remember where the package being upgraded was located, and reinstall to the same location.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: upgradeThe logic of upgrading packagesC: user schemeHandling of packages in user-specific directoriestype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions