2

我正在尝试将 Tensorflow-serving 安装到我的 Centos 8 机器上。使用 Docker 映像安装不是 Centos 的选项。所以我尝试用 pip 安装。这些是安装 tensorflow-model-server 的命令:

pip3 install tensorflow-serving-api==1.15
echo "deb [arch=amd64] http://storage.googleapis.com/tensorflow-serving-apt stable tensorflow-model-server tensorflow-model-server-universal" | sudo tee /etc/apt/sources.list.d/tensorflow-serving.list
curl https://storage.googleapis.com/tensorflow-serving-apt/tensorflow-serving.release.pub.gpg | sudo apt-key add -
sudo apt-get update && sudo apt-get install tensorflow-model-server

问题是我需要 1.15.0 版本,但找不到如何修改链接以安装 1.15 版本。任何有关修改链接的帮助、将“tensorflow/serving”安装到 Centos 8 的想法都会受到我的赞赏:)

4

1 回答 1

1

我找到了链接:

wget 'http://storage.googleapis.com/tensorflow-serving-apt/pool/tensorflow-model-server-1.15.0/t/tensorflow-model-server/tensorflow-model-server_1.15.0_all.deb'
dpkg -i tensorflow-model-server_1.15.0_all.deb
pip3 install tensorflow-serving-api==1.15

使用这些命令,它可以工作:)

于 2021-03-22T09:24:49.797 回答