re: Stop using sudo pip install VIEW POST

TOP OF THREAD FULL DISCUSSION
re: sudo pip is for global packages, virtualenv for literally everything else. Neither venv or pipenv will prevent you getting pwnd if you're careless ...
 

When would a pip install --user not suffice instead of a global install?

 

We see it when we're installing an application that will be used by another user account, since ~/.local/lib (or the equivalent) isn't shared. This is pretty rare in a development environment, but it comes up frequently in an administered multi-user setup (say a shared workstation or batch cluster). Sometimes service accounts as well depending on what they're doing.

code of conduct - report abuse