大家好,我是Tensorflow的新手,我从git上获取了Tensorflow的代码(https://github.com/tensorflow/serving),当我按照文档中的步骤尝试构建时,遇到了以下错误:
错误:com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: 加载包时出错:‘’扩展文件未找到。无法为‘@org_tensorflow//tensorflow:workspace.bzl’加载包:在包路径上未找到BUILD文件。信息:经过时间:0.081秒
回答:
这可能是因为你没有递归克隆(git clone --recurse-submodules https://github.com/tensorflow/serving
),因此TensorFlow没有作为子模块被克隆,Bazel无法找到TensorFlow本身。