On Wed, 24 Feb 2021 at 18:25, Steve Dower <[email protected]> wrote: > I mean, this is _precisely_ what PEP 370 defines (including the "-s" > option and PYTHONNOUSERSITE env variable to provide that one-way isolation). > > Is the problem that pip doesn't use it by default?
Note that these days, pip *does* use usersite by default if site-packages isn't writable. Of course, if users run pip under sudo, that invalidates that mechanism :-( Paul _______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/UE7W7IFPNAPTU64TNTHXZ5GUCLOSMUJV/ Code of Conduct: http://python.org/psf/codeofconduct/
