[2023-12-20 21:39]
Related : CodeJournal PythonNotes MyCommentary
Why Use pip install --user is a an article talking about why the --user
flag is useful while installing packages.
The main points to keep in mind are:
--user
flag enables you to specify an installation location not requiring admin access.pip
commands like pip list
.PIP_USER
can be changed for installing to a different user directory for that particular session and machine.system-site-packages
argument that can be set. If this is set, the --user
flag is not valid within that virtual environment. The reason is that the same packge could exist in the user's virtual environment as well as the global site, and thus cause conflicts.