What are virtual environment managers and why are they needed in Python?
Well they are not explicitly needed, but they can be useful.
A virtual env is a tool that creates and manages isolated Python environments. Each environment posseses its own Python interpreter and installed packages - separate from your wider system.
Imagine two projects requiring different versions of Django
You have project A, needing Django 3, and project B needing Django 5 (
Django is a "low-time-to-market" framework for developing web apps" - current release at time of writing is 6.1.4).
Installing packages globally will create a package conflict. Virtual envs let each project have exactly the version it needs.
Core Benefits of Virtual Envs (Common Sense but Being Explicit for Clarity)
Avoids dependency conflicts, allows reproducible builds, keeps your Python system clean. Experimentation is safe and deployment is easier.
All Hail Virtual Environments!