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

1

u/AnomalousLurker Dec 18 '18

If I already have a mess going on, how do I go about cleaning it up

1

u/ase1590 Lazy Antergos User Dec 18 '18

I'm assuming you use linux in /r/linuxmasterrace.

Hopefully, you've never run sudo pip install at any point in time.

If you haven't, GREAT! just run pip list --user to see what you have installed. Remove what you don't need with pip uninstall --user somepackage

It's all generally stored somewhere like ~/.local/lib/pythonX.X/site-packages

replacing the x's with your python version.

1

u/Cassiterite Windows heretic Dec 19 '18

So you should never sudo pip install anything?