I would recommend putting this in your ~/.bashrc :
export PIP_REQUIRE_VIRTUALENV=true
and you can also add the following function to ~/.bashrc , which allows you to explicitly call pip outside of the virtual environment if you decide:
gpip() { PIP_REQUIRE_VIRTUALENV="" pip " $@ " }
Now you can use your global version of pip to perform actions such as updating virtualenv:
gpip install
source share