Looking for a good (easy, intuitive) way to deploy my Python scripts to users in our lab. Found that pip install --user
installs the stuff into ~/.local/bin
- but this directory is not in PATH in typical Ubuntu setup.
Directory ~/bin
is in PATH. So why pip won't install there? Even if there is some hidden parameter in pip config to specify per-user bin directory, I do not want to have users tweak their pip config. I'm thinking about turning ~/bin
into symlink that points to ~/.local/bin
, this is easy and can be done only once. Users do not have to tweak their PATH and pip is happy.
What do you think? Can this linking lead to any trouble?
pip
won't install there"? The expected behavior ofpip install --user
in Ubuntu is to install into~/.local/bin
, so if you don't want that, then don't use the--user
option. The easiest way to let all users use the--user
option and not have to tweak$PATH
is to simply add~/.local/bin
to$PATH
in/etc/environment
.