Sunday, September 18, 2016

Install TensorFlow from source on Mac

To install TensorFlow from source on Mac, do as follows:

git clone https://github.com/tensorflow/tensorflow

brew install bazel swig

sudo easy_install -U six
sudo easy_install -U numpy
sudo easy_install wheel

sudo easy_install ipython

./configure

bazel build -c opt //tensorflow/tools/pip_package:build_pip_package

bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg

sudo pip install /tmp/tensorflow_pkg/tensorflow-0.10.0-py2-none-any.whl

Reference:
https://www.tensorflow.org/versions/r0.10/get_started/os_setup.html#installing-from-sources

No comments:

Post a Comment