Going around I read a lot about how sudo pip
is a very bad habit/solution. Some reasons people gave were:
- It could run malicious code.
- It will break permission structs.
- Sudo is used to install a package "system wide".
- It is Satan!1!!one
An alternative I found is running pip
with --user
(e.g. pip install --user package
). I saw that python in Debian works a little different (I have Stretch), mostly because of path used (--user
is standard in Debian if omitted, btw). In conclusion, I found a lot of inconsistent things.
Taking for granted that using sudo
and pip
together are wrong, can someone explain me why, and most of all, when is it wrong? Major issues I encountered were all about permissions, so my guess is that sudo
"just" ruin ownership.
Are there any other solutions besides using --user
or virtualenv?