python - tensorflow 构建错误

标签 python machine-learning tensorflow bazel tensorflow-serving

嘿,我是 Tenserflow 新手,我从 git ( https://github.com/tensorflow/serving ) 获取了 tenserflow 代码,当我尝试使用文档中的步骤构建它时,我收到此错误:

ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Extension file not found. Unable to load package for '@org_tensorflow//tensorflow:workspace.bzl': BUILD file not found on package path. INFO: Elapsed time: 0.081s

最佳答案

这可能是因为您没有递归克隆(git clone --recurse-submodules https://github.com/tensorflow/serving),因此 TensorFlow 不会被克隆为子模块,而 Bazel找不到 TensorFlow 本身。

参见https://github.com/tensorflow/serving/blob/master/tensorflow_serving/g3doc/setup.md#clone-the-tensorflow-serving-repository

关于python - tensorflow 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42694991/

相关文章:

python - 区别 np.where 和这个解决方法?

machine-learning - 二元机器学习分类的置信概率

machine-learning - 使用 TensorFlow .pb 图作为 Keras 模型

python - 用python计算纬度和经度之间的距离?

python - 如何使用 python 隐藏 QTableView 中的复选框?

python - tensorflow 中的求和池

python - 如何在 tensorflow 中保存文本分类模型?

python - Tensorflow安装成功但不工作

tensorflow - 是否可以在 Tensorflow 中默认设置 `allow_growth = True`

python - 单元格编辑期间 QTableWidgetItem 中的居中文本