From PEP 668 – Marking Python base environments as “externally managed”: A “virtual environment” now has a fairly precise definition: it uses the pyvenv.cfg mechanism, which causes sys.base_prefix != sys.prefix. [...] In older versions of v…