Hacker News new | ask | show | jobs
by _ikke_ 2889 days ago
How do you use PYTHONUSERBASE?
1 comments

    $ export PYTHONUSERBASE=/path/to/project-specific-python-user-base
    $ python3 -m pip install --user whatever
Everything now goes into that directory. Different projects on the same machine have different directories and so can't affect one another.