how can a Python version be forced to look at a particular local user site/user base for packages?
I tried setting the environment variable PYTHONUSERBASE but it is ignored. Typing this:
$ python -m site --user-base
gives no output, similarly for
$ python -m site --user-site
I am also not clear what the difference is between user base and user site. when python is invoked, it always looks in the system wide site-packages, like /usr/lib/... and not the directory I specified in PYTHONUSERBASE.
How can this be configured? Relevant doc: https://docs.python.org/2/library/site.html