tensorflow源码编译

平台:MAC,python2.7.14,tensorflow 1.4.0

1、下载源码

2、brew install bazel

3、cd tensorflow

4、./configure

5、bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

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

7、安装 pip install /tmp/tensorflow_pkg/tensorflow-1.4.0-cp27-cp27m-macosx_10_6_x86_64.whl

你可能感兴趣的:(tensorflow源码编译)