To build TensorFlow from source, you need to install several dependencies. Below is a list of the requirements for building TensorFlow:

  • Python: Python 3.7, 3.8, or 3.9
  • pip: The latest version of pip
  • wheel: The latest version of wheel
  • numpy: Version 1.16.0 or higher
  • six: Version 1.12.0 or higher
  • wheel: The latest version of wheel
  • future: Version 0.18.2 or higher
  • absl-py: Version 0.9.0 or higher
  • gfile: Version 0.1.2 or higher
  • tensorboard: Version 1.15.0 or higher
  • tf-estimator: Version 2.0.0 or higher
  • google-api-python-client: Version 1.7.6 or higher
  • mock: Version 3.0.5 or higher
  • termcolor: Version 1.1.0 or higher
  • wheel: The latest version of wheel
  • termcolor: Version 1.1.0 or higher
  • numpy: Version 1.16.0 or higher
  • absl-py: Version 0.9.0 or higher
  • gfile: Version 0.1.2 or higher

For detailed instructions on how to build TensorFlow, please refer to the official TensorFlow documentation.


Here are some common issues encountered while building TensorFlow:

  • Missing dependencies: Ensure all the required dependencies are installed.
  • Python version: Make sure you are using the correct version of Python.
  • pip version: The latest version of pip is required for building TensorFlow.

If you encounter any other issues, please refer to the TensorFlow GitHub issues page for solutions.


TensorFlow Installation Guide