I have a question about installing/upgrading Python packages using the tool pip.
I can either run
sudo pip install -U PACKAGENAME
or
pip install -U PACKAGENAME --user
What is the difference between those two commands and which one should I prefer...
- on my own machine?
- in the install script of a python program I publish?