# Install TensorFlow 2

### Install TensorFlow 2

TensorFlow is tested and supported on the following 64-bit systems:

|---|---|
| - Python 3.9--3.12 - Ubuntu 16.04 or later - Windows 7 or later (with [C++ redistributable](https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads)) | - macOS 10.12.6 (Sierra) or later (no GPU support) - WSL2 via Windows 10 19044 or higher including GPUs (Experimental) |

    # Requires the latest pip
    pip install --upgrade pip

    # Current stable release for CPU
    pip install tensorflow

    # Current stable release for GPU (Linux / WSL2)
    pip install tensorflow[and-cuda]

    # Or try the preview build (unstable)
    pip install tf-nightly


### [Download a package](http://www.tensorflow.org/install/pip)

Install TensorFlow with Python's *pip* package manager.

> [!NOTE]
> TensorFlow 2 packages require a `pip` version \>19.0 (or \>20.3 for macOS).

Official packages available for Ubuntu, Windows, and macOS.
[Read the pip install guide](http://www.tensorflow.org/install/pip)

### [Run a TensorFlow container](http://www.tensorflow.org/install/docker)


The [TensorFlow
Docker images](https://hub.docker.com/r/tensorflow/tensorflow/) are already configured to run TensorFlow. A
[Docker](https://docs.docker.com/install/) container runs in a
virtual environment and is the easiest way to set up GPU support.

     docker pull tensorflow/tensorflow:latest  # Download latest stable image
     docker run -it -p 8888:8888 tensorflow/tensorflow:latest-jupyter  # Start Jupyter server 

[Read the Docker install guide](http://www.tensorflow.org/install/docker)

### Google Colab: An easy way to learn and use TensorFlow


No install necessary---run the [TensorFlow tutorials](https://www.tensorflow.org/tutorials) directly in
the browser with [Colaboratory](https://colab.research.google.com/notebooks/welcome.ipynb), a Google research project created to help disseminate
machine learning education and research. It's a Jupyter notebook environment that requires
no setup to use and runs entirely in the cloud.
[Read the blog post](https://medium.com/tensorflow/colab-an-easy-way-to-learn-and-use-tensorflow-d74d1686e309).

## Build your first ML app

Create and deploy TensorFlow models on web and mobile.

### [Web developers](https://js.tensorflow.org)

TensorFlow.js is a WebGL accelerated, JavaScript library to train and deploy ML models in the browser, Node.js, mobile, and more.

### [Mobile developers](http://www.tensorflow.org/lite)

TensorFlow Lite is a lightweight solution for mobile and embedded devices.