Thursday, March 10, 2016

ERROR: Cannot find './util/python/python_include'. Did you run configure?

When building TensorFlow with Bazel, you might encounter the following error:

$ bazel build -c opt //tensorflow/tools/pip_package:build_pip_package
...
ERROR: /Users/izeye/IdeaProjects/tensorflow/util/python/BUILD:14:1: Executing genrule //util/python:python_check failed: bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.


ERROR: Cannot find './util/python/python_include'.  Did you run configure?


Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
...
$

Just configure as follows:

./configure

Reference:
https://github.com/tensorflow/tensorflow/issues/427

No comments:

Post a Comment