Konubinix' opinionated web of thoughts

PIP_REQUIRE_VIRTUALENV=true

Fleeting

python, pip

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

https://docs.python-guide.org/dev/pip-virtualenv/