From 6a83c423fc1d788d9e81b58a8659eca1cb84095d Mon Sep 17 00:00:00 2001 From: Eli Qiao Date: Tue, 17 Mar 2015 16:54:16 +0800 Subject: [PATCH] Fix pip install error If we set mutiple proxy (ip or url), pip install will treat the second proxy as a command. Add quotation marks around proxy. expecially for no_proxy Change-Id: I38ad3f083ba5155cda0e5e2b8f5df64492b7fecd --- inc/python | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/python b/inc/python index d72c3c94d7..229c54009d 100644 --- a/inc/python +++ b/inc/python @@ -94,9 +94,9 @@ function pip_install { $xtrace $sudo_pip \ - http_proxy=${http_proxy:-} \ - https_proxy=${https_proxy:-} \ - no_proxy=${no_proxy:-} \ + http_proxy="${http_proxy:-}" \ + https_proxy="${https_proxy:-}" \ + no_proxy="${no_proxy:-}" \ PIP_FIND_LINKS=$PIP_FIND_LINKS \ $cmd_pip install \ $@