linux 源码安装 tensorflow C++
系统:Ubuntu16.04 TensorFlow1.4 cpu版本 g++: 5.4.0 bazel: 0.5.4 参考:https://blog.csdn.net/zwx1995zwx/article/details/79064064 1,下载TensorFlow源代码 git clone https://github.com/tensorflow/tensorflow.git cd tensorflow git checkout r1.4 # 切换到所要编译的版本分支 2,安装bazel bazel的版本太高太低都会有问题,可以查看tensorflow/tensorflow/docs_src/install/install_sources.md文件中的版本需求。tf1.4版本对应的bazel版本是0.5.4。 安装bazel0.5.4:https://docs.bazel.build/versions/master/install-ubuntu.html#install-with-installer-ubuntu。推荐用installing using binary installer安装 3,编译Tensorflow 3.1,进入tensorflow文件夹 ./configure 按照提示都选n,参考https://blog.csdn.net/zwx1995zwx