You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you install a module with --user --upgrade, and the same module is already installed in the global package site, Pip first attempts to uninstall the module. I think that it should not do so unless the target install directory is the same as the previous module's version install directory.
This can be reproduced with (tested on Windows):
$ pip install six==1.10.0 --upgrade # an old version of six
$ pip show six
$ pip install six --user --upgrade
$ pip show six
I think that in this case, the six==1.10.0 should be left untouched and the newest version of six should simply be installed to the user package directory.
The text was updated successfully, but these errors were encountered:
NiklasRosenstein
changed the title
Do not uninstall module on upgrade if new version is not to be installed in the same location
Do not uninstall package on upgrade if new version is not to be installed in the same location
Nov 4, 2017
The --ignore-installed option works around this issue, but if the module does not need to be upgraded, you may as well just use the package from the global package site instead of reinstalling the same package into the user site.
The issue also appears with the --target or --prefix option.
If you install a module with
--user --upgrade
, and the same module is already installed in the global package site, Pip first attempts to uninstall the module. I think that it should not do so unless the target install directory is the same as the previous module's version install directory.This can be reproduced with (tested on Windows):
I think that in this case, the
six==1.10.0
should be left untouched and the newest version ofsix
should simply be installed to the user package directory.The text was updated successfully, but these errors were encountered: