If you do need to build from the source, then these steps should work:python
brew install python
linux
virtualenv ~/tf
git
source ~/tf/bin/activate
github
Install bazel for Macui
Install PCRE (not PCRE2) for Maccode
Install SWIG for Macip
git clone --recurse-submodules https://github.com/tensorflow/tensorflow
it
cd tensorflow
pip
./configure
module
bazel build -c opt //tensorflow/tools/pip_package:build_pip_package
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
pip install /tmp/tensorflow_pkg/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
bazel build -c opt //tensorflow/cc:tutorials_example_trainer