<https://www.reddit.com/r/Python/comments/1338oge/...
# random
👍 1
c
I agree with this change. The title is misleading. What you can’t do is use pip to install to your systems Python env, but using a venv you can use pip as usual. I’ve always found to use pip install to your system env a bad practice that may be difficult to repair should it get broken.
w
Agreed. I kinda wish that it did something like NPM, which is you have to specify "-g" for anything system/global level
Accidentally pip installing to system has been a pain in the ass for years for me
3
f
I've started doing export PIP_REQUIRE_VIRTUALENV=true on the machines
c
Woah nice. Wasn’t aware of that option! 🤩
w
🤯 🤯 🤯
f
You are welcome 😁
b
I can't expect my engs to have that set though. And there's so much
pip install myawesomepackage
in the wild 🤦‍♂️
f
Yes. It's the best effort thing, isn't it. If you can control the machine scaffolding process, you could get this into the bashrc or something.
But I guess even telling people they can use that, I'd find that already helpful
a
I am so glad that distros are finally going out of their way to make it hard to use system Python