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.
venv: an example
python -m venv .venv then source .venv/bin/activate on Linux or macOS, or .venv\Scripts\activate on Windows.
Related terms
- Virtual environment
- pip
- conda
- Activation
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.