bazel
下载bazel-0.5.4-installer-linux-x86_64.sh,并拷贝到/opt/modules
修改权限
chmod +x bazel-0.4.5-installer-linux-x86_64.sh
安装bazel依赖
yum install -y unzip
运行bazel
./bazel-0.5.4-installer-linux-x86_64.sh --user
此时会在home目录生成bin,在~/.bashrc
添加环境变量
export PATH="$PATH:$HOME/bin"
gRPC
$ pip install grpcio
tensorflow serving依赖
$ sudo pip install six numpy wheel
$ yum install gcc-c++
若未安装tensorflow,则
$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.2.1-cp27-cp27mu-manylinux1_x86_64.whl
安装tensorflow serving api
$ pip install tensorflow-serving-api