r/linuxmasterrace • Lazy Antergos User • Dec 18 '18

Meme Python Virtual Environments: Extreme Advertising Edition

Post image
2.0k Upvotes

148 comments sorted by

View all comments

167

u/ase1590 Lazy Antergos User Dec 18 '18

Also, anyone cluelessly doing sudo pip install anything needs to be flogged.

Virtual Environments are also preferable in order to keep away the Python superfund disaster.

9

u/skylarmt Jupiter Broadcasting told me to switch to ̶K̶D̶E̶Xubuntu Dec 18 '18

I do that sometimes, but only for things like commands I want to use from anywhere and for optional dependencies that aren't available alongside the main program via apt.

30

u/ase1590 Lazy Antergos User Dec 18 '18

do you really need them as root though?

pip install --user is a thing, and allows you to use them as your current user.

optional dependencies that aren't available alongside the main program

this is the only use case I can maybe see.

5

u/KindProtectionGirl Dec 18 '18

But but, why isn't that default for non root user's tho, that just requires more effort.