On Wed, 24 Feb 2021 at 18:25, Steve Dower <steve.do...@python.org> 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 -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/UE7W7IFPNAPTU64TNTHXZ5GUCLOSMUJV/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to