Bazel构建命令从源安装tensorflow

时间:2017-05-17 01:56:04

标签: build tensorflow bazel

我目前正在尝试从源代码安装tensorflow。当我在终端输入bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package -cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0时,它只是给了我一个角括号指示符>。接下来应该做什么?

以下是./configure步骤输出。

Please specify the location of python. [Default is /home/jingw222/anaconda3/bin/python]: 
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]: 
Do you wish to use jemalloc as the malloc implementation? [Y/n] 
jemalloc enabled
Do you wish to build TensorFlow with Google Cloud Platform support? [y/N] 
No Google Cloud Platform support will be enabled for TensorFlow
Do you wish to build TensorFlow with Hadoop File System support? [y/N] 
No Hadoop File System support will be enabled for TensorFlow
Do you wish to build TensorFlow with the XLA just-in-time compiler (experimental)? [y/N] 
No XLA support will be enabled for TensorFlow
Found possible Python library paths:
  /home/jingw222/anaconda3/lib/python3.6/site-packages
Please input the desired Python library path to use.  Default is [/home/jingw222/anaconda3/lib/python3.6/site-packages]

Using python library path: /home/jingw222/anaconda3/lib/python3.6/site-packages
Do you wish to build TensorFlow with OpenCL support? [y/N] 
No OpenCL support will be enabled for TensorFlow
Do you wish to build TensorFlow with CUDA support? [y/N] 
No CUDA support will be enabled for TensorFlow
Configuration finished
...........
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
..........
INFO: All external dependencies fetched successfully.

1 个答案:

答案 0 :(得分:2)

可能是你错过了结束吗?

bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package -cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0"