I'd want to install python modules as non-root user like this
$ pip install -I --install-option="--prefix=~/usr" scipy
Unfortunately this usually does not work unless you specify --user
. But --user
can't be used together with --prefix
. Using --user
only (without --prefix
) installs to ~/.local
which I find ugly because I have a well maintained ~/usr
and don't want to add even more stuff to my env
to make ~/.local
usable too.
So my questions:
- How can I let
--prefix
and--user
work together for setup.py or how else could setup.py succeed without using--user
? - Or can I change the user site directory from
~/.local
to~/usr
somehow byenv
?