VIRTUAL_ENV
An environment variable set by the activate script to the folder of the active virtual environment.
In more detail
Tools and prompts read it to show that a virtual environment is active. Setting it yourself does not activate anything: what matters is which python is first on PATH.
Related terms
- activate script — The script inside a virtual environment that puts it first on PATH for the current shell session.
- virtual environment — A self-contained folder with its own Python and its own installed packages, so each project's packages stay separate.
- environment variable — A named setting such as PORT=8000 that a program reads from its surroundings when it starts.
Taught in
- Virtual Environments — Hands-on Python: Complete Video Course & Book