3 ms·
PEP 405 [1], which added virtual environment support to the Python standard library, documents how the python binary attempts to determine sys.prefix, which is
by pdonis 5y ago
PEP 405 [1], which added virtual environment support to the Python standard library, documents how the python binary attempts to determine sys.prefix, which is the key thing that has to be set to the virtual environment directory in a virtual environment. See the "Specification" section.
[1] https://www.python.org/dev/peps/pep-0405/ https://www.python.org/dev/peps/pep-0405/
- EE84M3i 5y agoOh! Thank you! that's incredibly helpful. So, does this mean my understanding of "activate" setting PYTHONHOME (and thus being required for using a virtualenv) was true before this PEP was accepted? Looks like python3.3?
- pdonis 5y ago> does this mean my understanding of "activate" setting PYTHONHOME (and thus being required for using a virtualenv) was true before this PEP was accepted? I believe that's what the activate scripts for third-party virtualenv tools did, yes. > Looks like python3.3? Yes, that's the version for which the PEP was accepted.