Use easy_install for pip installation for RBE images.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 9 May 2018 21:14:48 +0000 (14:14 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 9 May 2018 21:20:31 +0000 (14:20 -0700)
We will remove python-pip deb packages from rbe-{debian8, ubuntu16_04}:
  https://github.com/bazelbuild/bazel-toolchains/pull/46
So that we don't we have pip install by deb packages and Python's own package system (and they conflict with each other)

We only install pip by easy_install.

PiperOrigin-RevId: 196027421

tensorflow/tools/ci_build/install/install_pip_packages_remote.sh

index 0beabcf..721590f 100755 (executable)
@@ -20,8 +20,8 @@ if [ ! -f /usr/bin/x86_64-linux-gnu-gcc ]; then
   ln -s /usr/local/bin/clang /usr/bin/x86_64-linux-gnu-gcc
 fi
 
-pip2 install --upgrade setuptools
-pip3 install --upgrade setuptools
+easy_install -U pip==9.0.3
+easy_install3 -U pip==9.0.3
 
 # The rest of the pip packages will be installed in
 # `install_pip_packages.sh`