bazel build tensorflow_serving / ...没有这样的包' inception'

时间:2016-03-26 23:58:52

标签: tensorflow tensorflow-serving

我试图在OSX El Capitan上构建tensorfolw_serving并继续收到错误。我通过自制软件安装了Bazel。

这是错误:

$ bazel build tensorflow_serving/...
Extracting Bazel installation...
............
ERROR: /private/var/tmp/_bazel_robertgrzesik/fb4fbbbabd0582fe8f5abe6ab13dbfd9/external/inception_model/inception/slim/BUILD:93:1: no such package 'inception': BUILD file not found on package path and referenced by '@inception_model//inception/slim:slim'.
ERROR: Loading failed; build aborted.
INFO: Elapsed time: 45.554s

我也试过在我的系统上给它一个包路径并得到一个不同的错误:

$ bazel build --package_path /Users/robertgrzesik/anaconda/lib/python2.7/site-packages tensorflow_serving/...
ERROR: no targets found beneath 'tensorflow_serving'.
INFO: Elapsed time: 0.131s

2 个答案:

答案 0 :(得分:0)

我通过他们的网站下载安装了Bazel,并且工作正常。

这是一个链接:http://bazel.io/docs/install.html

似乎从自制软件安装会导致一些错误。

答案 1 :(得分:0)

使用cd ..并从tensorflow文件夹中运行此脚本