venv.EnvBuilder()
venv.EnvBuilder() is a Python function in the Venv Module category. Customizable virtual environment builder. The syntax is venv.EnvBuilder(system_site_packages=False, clear=False, symlinks=False, upgrade=False, with_pip=False, prompt=None, upgrade_deps=False). Returns: EnvBuilder object. A typical example: builder = venv.EnvBuilder(with_pip=True, prompt="myapp")
builder.create("myenv"). A close sibling is venv.create(), which creates a Python virtual environment in the specified directory. More about this category: Virtual environment creation — create, EnvBuilder. For a broader walkthrough, read the Venv Module guide. Related Venv Module entries: venv.create(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try venv.EnvBuilder() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.