Bazel Tensorflow installation from source: Unrecognized option: --host_force_python=py2
<p>I'm trying to install tensorflow from source. When running the configure file I selected all the default parameters, then when trying to run:</p>

<pre><code>bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
</code></pre>

<p>I get the message:</p>

<pre><code>INFO: Reading options for 'build' from /home/ubuntu/tensorflow/tensorflow/tools/bazel.rc:
  'build' options: --force_python=py2 --host_force_python=py2 --python2_path=/usr/bin/python --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --define PYTHON_BIN_PATH=/usr/bin/python --spawn_strategy=standalone --genrule_strategy=standalone
Unrecognized option: --host_force_python=py2
</code></pre>

<p>Then when I try to run the build_pip_package command, it can't findthe build_pip_package command:</p>

<pre><code>build_pip_package: command not found
</code></pre>

<p>Although there does exist a build_pip_package file inside <code>bazel-bin/tensorflow/tools/pip_package</code></p>