venv — Creation of virtual environments — Python 3.14.7 documentation

docs.python.org

Tin mới

ensurepip — Bootstrapping the pip installer

zipapp — Manage executable Python zip archives

Python Module Index

3.14.7 Documentation

The Python Standard Library

Software Packaging and Distribution

site: Module responsible for site-specific configuration.

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.

Virtual Environments

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.

WebAssembly platforms

This module is not supported on mobile platforms or WebAssembly platforms.

sys.base_exec_prefix

When a Python interpreter is running from a virtual environment, sys.prefix and sys.exec_prefix point to the directories of the virtual environment, whereas sys.base_prefix and sys.base_exec_prefix point to those of the

Python install manager

When a Python interpreter is running from a virtual environment, sys.prefix and sys.exec_prefix point to the directories of the virtual environment, whereas sys.base_prefix and sys.base_exec_prefix point to those of the

types.SimpleNamespace

Creates the environment directory and all necessary subdirectories that don’t already exist, and returns a context object. This context object is just a holder for attributes (such as paths) for use by the other methods.

sysconfig installation scheme

Changed in version 3.11: The venv sysconfig installation scheme is used to construct the paths of the created directories.