pyvenv.cfg
The small settings file at the top of every virtual environment, recording which base Python it was made from.
In more detail
Its presence is how Python knows it is running inside a virtual environment. The standard library is not copied into the environment; pyvenv.cfg points back to the base installation instead.
Related terms
- virtual environment — A self-contained folder with its own Python and its own installed packages, so each project's packages stay separate.
- sys.prefix — The folder a running Python treats as its installation; inside a virtual environment it differs from sys.base_prefix.
Taught in
- Virtual Environments — Hands-on Python: Complete Video Course & Book