没有这样的包'苗条':找不到BUILD文件 - Tensorflow

时间:2018-01-16 18:48:25

标签: python tensorflow machine-learning computer-vision bazel

目前正在尝试运行Google的研究,我按照提供的说明进入下面的错误。 Instruction on Github - 使用Anaconda / Tensorflow下载的Mint Linux系统。这是“获取数据集”的第二步

~/test/models/research $ bazel run domain_adaptation/datasets:download_and_convert_mnist_m -- --dataset_dir $DSN_DATA_DIR
ERROR: /home/.../models/research/domain_adaptation/datasets/BUILD:29:1: no such package 'slim': BUILD file not found on package path and referenced by '//research/domain_adaptation/datasets:download_and_convert_mnist_m'
ERROR: Analysis of target '//research/domain_adaptation/datasets:download_and_convert_mnist_m' failed; build aborted: no such package 'slim': BUILD file not found on package path
INFO: Elapsed time: 0.168s

1 个答案:

答案 0 :(得分:2)

研究模型,包括slimdomain_adaptationhave been movedthis commit//research套餐。

但是,此更改未反映在https://github.com/tensorflow/models/tree/master/research/domain_adaptationBUILD个文件中。您需要将research添加到BUILD目标中,例如thisthisthis(即从//slim:mnist到{{1}因此,引用//research/slim:mnist的{​​{3}}。