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.

1

u/Ansamemsium Dec 22 '18

A newbie question, after i made a virtual env i should make my project inside that folder ? Or i can put it anywhere and when i run the script just do it with the venv activated ?

2

u/ase1590 Lazy Antergos User Dec 22 '18

While it can technically run from anywhere, it's best practice to have your project in the folder.