执行TF时出现构建错误。
我有一个包含文件问题。我已经安装了最新的zlib1g-dev,但没有运气。
从源V0.3.2构建的Bazel二进制文件, TF命令:
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
ERROR:
ERROR: tensorflow/core/BUILD:853:1: undeclared inclusion(s) in rule '//tensorflow/core:lib_internal':
this rule is missing dependency declarations for the following files included by 'tensorflow/core/lib/png/png_io.cc':
~/.cache/bazel/_bazel_madhu/a9aabe45cf3d94341ef4fb777deb58c5/external/zlib_archive/zlib.h'
~/.cache/bazel/_bazel_madhu/a9aabe45cf3d94341ef4fb777deb58c5/external/zlib_archive/zconf.h'."
答案 0 :(得分:0)
清理您的$HOME/.cache/bazel
目录。