From d386a71b65d44587892b3b0110cd1c6625f1592e Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Mon, 18 Feb 2019 06:15:25 +0000 Subject: [PATCH] test=develop, install protobuf in linux --- paddle/scripts/paddle_build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 5ef3a3102..e7078499c 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -125,8 +125,6 @@ function cmake_gen() { else if [ "$1" != "" ]; then echo "using python abi: $1" - pip uninstall -y protobuf - pip install -r ${PADDLE_ROOT}/python/requirements.txt if [ "$1" == "cp27-cp27m" ]; then export LD_LIBRARY_PATH=/opt/_internal/cpython-2.7.11-ucs2/lib:${LD_LIBRARY_PATH#/opt/_internal/cpython-2.7.11-ucs4/lib:} export PATH=/opt/python/cp27-cp27m/bin/:${PATH} @@ -168,6 +166,9 @@ function cmake_gen() { pip3.7 uninstall -y protobuf pip3.7 install -r ${PADDLE_ROOT}/python/requirements.txt fi + else + pip uninstall -y protobuf + pip install -r ${PADDLE_ROOT}/python/requirements.txt fi fi -- GitLab