From the docs:
site.ENABLE_USER_SITE
Flag showing the status of the user site-packages directory.
True
means that it is enabled and was added tosys.path
.False
means that it was disabled by user request (with-s
orPYTHONNOUSERSITE
). None means it was disabled for security reasons (mismatch between user or group id and effective id) or by an administrator.
I'm particularly interested in the phrase or by an administrator. On machines on which I'm an administrator (i.e. my own), how do I disable this option globally, for a specific interpreter executable?
The reason I want to do this is that new conda environments leave this enabled: https://github.com/conda/conda/issues/448