venv — Creation of virtual environments¶" property="og:title"> venv — Creation of virtual environments¶" name="twitter:title">
 The venv module supports creating lightweight “virtual environments”, each with their own independent set of Python packages installed in their svenv — Creation of virtual environments¶">

venv — Creation of virtual environments¶

submited by
Style Pass
2024-12-13 08:30:03

The venv module supports creating lightweight “virtual environments”, each with their own independent set of Python packages installed in their site directories. A virtual environment is created on top of an existing Python installation, known as the virtual environment’s “base” Python, and may optionally be isolated from the packages in the base environment, so only those explicitly installed in the virtual environment are available.

When used from within a virtual environment, common installation tools such as pip will install Python packages into a virtual environment without needing to be told to do so explicitly.

Used to contain a specific Python interpreter and software libraries and binaries which are needed to support a project (library or application). These are by default isolated from software in other virtual environments and Python interpreters and libraries installed in the operating system.

Contained in a directory, conventionally named .venv or venv in the project directory, or under a container directory for lots of virtual environments, such as ~/.virtualenvs.

Leave a Comment
Related Posts