12. Virtual Environments and Packages — Python 3.13.7 documentation

TL;DR


Summary:
- This article explains how to create and use virtual environments in Python. Virtual environments are isolated Python environments that allow you to install and manage packages without affecting the system's main Python installation.
- It covers how to create a new virtual environment, activate it, and install packages within the virtual environment. This is important for managing dependencies and avoiding conflicts between different projects.
- The article also discusses how to deactivate and remove virtual environments, as well as how to share your project's dependencies with others using a requirements file.

Like summarized versions? Support us on Patreon!