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 Messaging 🎅🏼
For Django-based social platforms.
Django App for You
Django Paddle Subscriptions 🎅🏼
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent 🎅🏼
For Django websites that use cookies.
Django App for You