PIP (1)


Require activated virtualenv on PIP

I highly recommended to separate your working environments so every project has their own set of packages. To do this just edit the ~/.bash_profile file.

<br />
export PIP_REQUIRE_VIRTUALENV=true<br />
# define a &quot;global pip&quot; function to use outside virtualenv:<br />
gpip(){<br />
    PIP_REQUIRE_VIRTUALENV=&quot;&quot; pip &quot;$@&quot;<br />
}<br />

After that, reload the source file with this command source ~/.bash_profile.