AI engineering glossary · Python advanced

What is venv?

venv: The standard library module and command that creates virtual environments. Running python -m venv name makes a folder with an isolated interpreter setup and pip. It ships with Python, so no separate installation is needed for basic isolation.

Level: beginnerTopic: Python advanced

venv: an example

python -m venv .venv then source .venv/bin/activate on Linux or macOS, or .venv\Scripts\activate on Windows.

Related terms

More Python advanced terms

Where you learn it

venv is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.