This guide will walk you through the process of installing TensorFlow on your system. Make sure you have the necessary prerequisites installed before proceeding.

System Requirements

Before you begin, ensure your system meets the following requirements:

  • Operating System: Linux, macOS, or Windows
  • Python: Python 3.6 or newer
  • pip: The Python package manager

Installation Steps

1. Install Python

TensorFlow requires Python to be installed on your system. You can download and install Python from the official website.

2. Install pip

pip is the package manager for Python. It is used to install Python packages. You can install pip by running the following command in your terminal:

python -m ensurepip --upgrade

3. Install TensorFlow

Once you have Python and pip installed, you can install TensorFlow by running the following command:

pip install tensorflow

You can also install TensorFlow GPU by adding the --gpu flag:

pip install tensorflow-gpu

4. Verify Installation

After installation, you can verify that TensorFlow is installed correctly by running the following Python command:

import tensorflow as tf
print(tf.__version__)

This should print the version of TensorFlow that you have installed.

Additional Resources

For more detailed installation instructions and troubleshooting, please refer to the official TensorFlow documentation.


TensorFlow is a powerful library for machine learning and deep learning. To learn more about its capabilities, check out our TensorFlow tutorials.