Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gdamjan1
· 11y ago · 0 comments
oh, it's 2015 and people still don't know about pep-370, PYTHONUSERBASE and pip install --user :(
https://www.python.org/dev/peps/pep-0370/
Comments
[–]
l00mer
11y ago
That's for per-user isolation. This is about per-project isolation. A single user can have many projects with different dependencies.
[–]
gdamjan1
OP
11y ago
that's what PYTHONUSERBASE (the environment variable) is there for!
[–]
l00mer
11y ago
Ah, I hadn't thought of using it that way. Seems like a working solution, even though it's not the problem that the PEP is meant to solve.
[–]
ehremo
11y ago
But you may want to keep 3 installation levels: global, per-user and per-project. If you use the second to achieve the third, then you no longer have the second.
[–]
thameera
11y ago
PYTHONUSERBASE seems like a superior idea than any others to me. Wonder why it is not popular.