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

Taught in

References