---
title: 编译TensorFlow
description: "编译TensorFlow时需要使用Bazel工具。Bazel是快速且可扩展的构建工具，本章节使用的Bazel版本号为0.26.0，请正确安装Bazel和TensorFlow。"
url: https://www.hikunpeng.com/document/detail/zh/SRA/perfEval/benchmarksra/kunpengmodelzoo_06_0034.html
sourcePath: /source/zh/SRA/perfEval/benchmarksra/kunpengmodelzoo_06_0034.html
indexId: c314210493264c24462618b82881ff73026648698ccef15e11a5c2c6f6c6a10365
---
# 编译TensorFlow

编译TensorFlow时需要使用Bazel工具。Bazel是快速且可扩展的构建工具，本章节使用的Bazel版本号为0.26.0，请正确安装Bazel和TensorFlow。

编译TensorFlow 1.15.5请参见《鲲鹏BoostKit搜推广使能套件 TensorFlow 移植指南》中的“移植指导（TensorFlow 1.15.5）(https://www.hikunpeng.com/document/detail/zh/SRA/ecosystemEnable/TensorFlow/kunpengtensorflow_02_0017.html)”章节。

安装Bazel和TensorFlow过程中可能会遇到故障报错信息，请参见《鲲鹏BoostKit搜推广使能套件 TensorFlow 移植指南(https://www.hikunpeng.com/document/detail/zh/SRA/ecosystemEnable/TensorFlow/kunpengtensorflow_02_0017.html)》以及故障排除章节对应的操作步骤解决问题。
