Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PREFIX directory for pip command

83 views
Skip to first unread message

Makoto Kuwata

unread,
Nov 15, 2011, 8:34:30 AM11/15/11
to pytho...@python.org
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?

--
regards,
makoto

Marc Christiansen

unread,
Nov 15, 2011, 9:33:42 AM11/15/11
to
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

Makoto Kuwata

unread,
Nov 15, 2011, 10:40:34 AM11/15/11
to pytho...@python.org
On Tue, Nov 15, 2011 at 11:33 PM, Marc Christiansen
<use...@solar-empire.de> wrote:
>
> I'd try
>  export PIP_INSTALL_OPTION=--prefix=$PWD/local

It works very well. Thank you.

--
regards,
makoto

>
> using a config file is also possible. See
> http://www.pip-installer.org/en/latest/configuration.html
>
> Ciao
> Marc
> --
> http://mail.python.org/mailman/listinfo/python-list
>
0 new messages