PREFIX directory for pip command

Marc Christiansen usenet at solar-empire.de
Tue Nov 15 09:33:42 EST 2011


Makoto Kuwata <kwa at kuwata-lab.com> wrote:
> Is it possible to specify PREFIX directory for pip command by
> environment variable?
> 
> I found that 'pip install --install-option=--prefix=PREFIX' works well,
> but I don't want to specify '--install-option=--prefix=PREFIX' every time.
> I prefer to specify it by environment variable such as::
> 
>    export PIP_INSTALL_DIR=$PWD/local
> 
> Is it possible? Or any idea?

I'd try
 export PIP_INSTALL_OPTION=--prefix=$PWD/local

using a config file is also possible. See
http://www.pip-installer.org/en/latest/configuration.html

Ciao
Marc



More information about the Python-list mailing list