-
Notifications
You must be signed in to change notification settings - Fork 3k
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 install -e doesn't uninstall existing versions #1548
Comments
by adding an additional call to `requirement.check_if_exists()` to RequirementSet.install Fixes pypaGH-1548
by adding an additional call to `requirement.check_if_exists()` to RequirementSet.install Fixes pypaGH-1548
I think this is because |
But only when pip has collected the editable package's metadata. closes pypa#1548
This has been an annoyance for me and my colleagues and I think I have a one line fix, but I figured that there is a good chance that this a known issue and that it's been discussed before and there's some reason not to change it.
A pip install of one version of a package will typically cause the previously installed version to be uninstalled, so there is only one version installed at a time.
If one installs a regular package from PyPI and then installs an editable package from git or from a local directory (e.g.:
pip install -e .
), then the former package does NOT get uninstalled and you have two versions installed (even thoughpip freeze
will only show one). In this weird state, sometimes the older package will get picked up and a singlepip uninstall
is not enough to clean up. You have to do a not obviouspip uninstall
TWICE to completely remove the package.Example
Any reason NOT to have
pip install -e
check for previously installed versions and uninstall them?The text was updated successfully, but these errors were encountered: