3 ms·
I have: $ cat ~/.pip/pip.conf [global] require-virtualenv = true ...which makes pip refuse to install anything unless I'm in an activated virtualenv. Th
by kstrauser 4y ago
I have:
$ cat ~/.pip/pip.conf
[global]
require-virtualenv = true
...which makes pip refuse to install anything unless I'm in an activated virtualenv. That, plus running as a regular user that doesn't have write permission to /usr, goes a long way.
- bravetraveler 4y agoI love this, pip is an absolute nightmare on systems with a restricted umask. Newly created files/directories lack permissions for regular users... essentially breaking the interpreter for everyone [if /usr, sudo, etc]
- primax 4y agoThis is great, thank you!
- 0x008 4y agothen you cannot upgrade pip :D
- kstrauser 4y agoI do sometimes have to disable that, but at least then it's because I'm very deliberately doing it for a specific reason. But if you're in a virtualenv, you can use the venv's pip to upgrade the venv's pip. :-)