What is a virtual environment and why use it?

Python modules, packages and environments · Freshers

Model answer

An isolated Python environment with its own installed packages for one project, created with python -m venv .venv. It prevents version conflicts between projects and keeps the system Python clean. Activate it before installing packages.

Learn this topic

Modules, pip and Virtual Environments in Python in the course Python for Beginners: Learn to Code with Real Projects.

Sign in to add your own answer.

More questions