Reference · Glossary

Virtual environment

Last updated

A **virtual environment** isolates Python packages for one project so dependencies do not collide with the system or other apps.

#When to use

Every Python AI project before `pip install`. Keeps training and serving deps reproducible.

#When not to

Editing global site-packages “just this once” — that is how machines rot.

#Example

python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -r requirements.txt

#Learn next