About Restricting Pip Installations to Virtual Environments Only
Edit ~/.zshenv
within zsh shell or ~/.bash_profile
within bash shell and add a line to restrict pip installations only to virtual environments:
export PIP_REQUIRE_VIRTUALENV=true
Then if you try to install anything globally, you will get an error:
Could not find an activated virtualenv (required).
This saves you from polluting the global scope by accident.
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You