Global pip installs can be broken for users other than the installer. #3856
Labels
C: user scheme
Handling of packages in user-specific directories
type: bug
A confirmed bug or unintended behavior
type: enhancement
Improvements to functionality
Description:
pip
will install a package that is broken for other users.Say I have two user accounts on my machine,
alice
andbob
; ifalice
does the following,$ pip3 install --user six $ # then, later, $ pip3 install ipython
The second command installs
ipython
globally; however, it does not installsix
, a dependency ofipython
, because it believes that dependency to be fulfilled by the user-only install of it. As a result,ipython
will work foralice
, but notbob
.This is perhaps somewhat subjective, but I expect global
pip
installs to be global, and not depend on the state of the user who is running pip. Ifpip
here excluded--user
installs when determining if a dependency was met, the package would install correctly.(I find it acceptable for
--user
packages to shadow global ones; this could result in the situation whereby a user has an incompatible version installed in--user
that the global install can not use, but this situation is already possible today, and seems hard to eliminate without some sort of concept of whatemerge
calls slots.)What I've run:
$ pip3 install --user six $ # then, later, $ pip3 install ipython
The text was updated successfully, but these errors were encountered: