yum -y install build-essential openjdk-8-jdk python zip unzip gcc python-pip libhdf5-serial-dev git pkg-config pip install numpy future keras_preprocessing mock Cython
mkdir bazel unzip bazel-0.26.0-dist.zip -d bazel cd bazel EXTRA_BAZEL_ARGS='--host_javabase=@local_jdk//:jdk' ./compile.sh
ln -s ${bazel根目录}/output/bazel /usr/bin/bazel
bazel --version
回显显示版本信息,表示安装成功。