3 ms·
To prevent accidentally installing in the global interpreter I have this in my .bash_profile: # pip should only run if there is a # virtualenv current
by jedberg 7y ago
To prevent accidentally installing in the global interpreter I have this in my .bash_profile:
# pip should only run if there is a
# virtualenv currently activated
export PIP_REQUIRE_VIRTUALENV=true
- tus88 7y agoDo you type "sudo" by accident a lot?
- vonseel 7y agoPerhaps his global python doesn’t require sudo... it is pretty easy to install your own or change permissions of the default one, you know.
- coldtea 7y agoIf you do frequent admin work on a computer it's trivial to "type sudo by accident a lot", so I don't understand the spirit of the question...