title: TensorFlow: bazel error when building pip package
body: <p>Was following <a href="https://stackoverflow.com/questions/41293077/how-to-compile-tensorflow-with-sse4-2-and-avx-instructions">this link</a> to compile TensorFlow library.</p>
  
  <p>Using this code <code>bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both --copt=-msse4.2 --config=cuda -k //tensorflow/tools/pip_package:build_pip_package</code>, however, got the following error.</p>
  
  <pre><code>WARNING: Config values are not defined in any .rc file: cuda
  ERROR: Skipping '//tensorflow/tools/pip_package:build_pip_package': no such package 'tensorflow/tools/pip_package': BUILD file not found on package path
  WARNING: Target pattern parsing failed.
  INFO: Analysed 0 targets (0 packages loaded).
  INFO: Found 0 targets...
  ERROR: command succeeded, but there were errors parsing the target pattern
  INFO: Elapsed time: 0.331s, Critical Path: 0.02s
  FAILED: Build did NOT complete successfully
  </code></pre>
  
  <p>Is this because I installed TensorFlow using pip?</p>
  
  <p>Any sugguest what to do next?</p>