PIP_REQUIRE_VIRTUALENV=true
Fleeting- Référence externe : https://docs.python-guide.org/dev/pip-virtualenv/
In order to make sure that you install packages to your active virtual environment when you use pip install, consider adding the following line to your ~/.bashrc file:
export PIP_REQUIRE_VIRTUALENV=true