AI engineering glossary · Python advanced

What is virtual environment?

Virtual environment (also called virtualenv, venv): An isolated folder holding its own Python interpreter link and installed packages for one project. It prevents version clashes between projects and keeps the system Python clean. Deleting the folder removes the environment without touching other projects.

Level: beginnerTopic: Python advanced

Virtual environment: an example

python -m venv .venv creates one; after activating it, pip install pandas affects only this project.

Related terms

More Python advanced terms

Where you learn it

Virtual environment 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.