Props to Arch Linux for adding something to protect me from being a dumbass
14 comments
@BrodieOnLinux Is this a new thing? Or am I just hallucinating because I remember being able to do that about 8 month's ago. @BrodieOnLinux I will install all pip shit in global, on the extremely rare occasion that I actually install pip shit.
pip is garbage @BrodieOnLinux python venvs are so damn convenient. I can just take it with me while distro-hopping. @Player2alpha I've always just installed things globally and dealt with the consequences, this is a much better option @BrodieOnLinux I recommend pipenv (installed with pipx) to manage per-project virtual environments and requirements file (pipfile & lock). If you add asdf or pyenv to the mix, then pipenv can control the python version for each virtual environment as well. @BrodieOnLinux @portaloffreedom I have no idea what any of this means, but whenever I see arch-anything my brains goes here 😄 @BrodieOnLinux This post alone has helped me understand how to make an environment better than the 5 different times I've Googled it. @BrodieOnLinux I was under the impression that pip now detects this and installs it in your user, so no root permissions required? 🤔 Still a good message nonetheless @minkiu It's up to the distro how it's handled, Arch and Debian take the venv approach @minkiu @BrodieOnLinux pip never did that, some distros probably patched that in. The above is a pip native solution that should now work for every distribution. Checkout PEP668 if interested. Installing to --user either way can have a chance of user errors even if full system breakage is avoided like with installing system wide. https://bugs.gentoo.org/902027 :P |
@BrodieOnLinux that information is very useful!