How to require a virtualenv when installing packages with pip?
You can require a virtual environment to be activated when installing packages by
setting the environment variable PIP_REQUIRE_VIRTUALENV to true or
adding the line require-virtualenv = true to your pip.conf:
[global]
require-virtualenv=falseLast updated on