嘿,我是 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 本身。
关于python - tensorflow 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42694991/