版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014234504/article/details/79020657
1. My os environment
Centos 7.4
2. Install bazel and protobuf
bazel version 0.5.4
protobuf version 3.5.1
3. Install other dependencies
yum install python-pip python-devel python-numpy
4. get source code
git clone --recurse-submodules https://github.com/tensorflow/tensorflow
5. build source code
扫描二维码关注公众号,回复:
4824919 查看本文章
cd ./tensorflow
./configure
bazel build -c opt //tensorflow/tools/pip_package:build_pip_package
bazel build -c opt //tensorflow/tools/pip_package:build_pip_package
bazel-bin/tensorflow/tools/pip_package/build_pip_package