Since time immemorial people have used
sudo pip install to work around permissions issues rather than simply use
pip install --user.
However, there appears to be an easier way to default to using
$HOME/.local/bin to your
$PATH by default.
python-pip-19.2.3-1.0 adds a global configuration file (
Combined, any run of
pip install will now default to installing under your
$HOME with binaries available under
This should be transparent to most people and prevent all of the various "MY PYTHONS IS A CONFLICT!" threads. This won't fix things for people who have already run
sudo pip install but they shouldn't have done that in the first place.
If you really want to avoid using
--user you can run with
PIP_USER=false pip list
which ignores the default setting.
This is all working fine in my initial testing, but please test and feed back any issues.
- Working without issue
- Working but with issues (post)
- Completely broken (post)