Install TensorFlow 2
TensorFlow is tested and supported on the following 64-bit systems:
|
|
# Requires the latest pippip install --upgrade pip
# Current stable release for CPU-onlypip install tensorflow
# Or preview build for CPU/GPU (unstable)pip install tf-nightly
Download a package
Install TensorFlow with Python's pip package manager.
Official packages available for Ubuntu, Windows, macOS, and the Raspberry Pi.
See the GPU guide for CUDA®-enabled cards.
Run a TensorFlow container
The TensorFlow Docker images are already configured to run TensorFlow. A Docker container runs in a virtual environment and is the easiest way to set up GPU support.
docker pull tensorflow/tensorflow # Download latest image
docker run -it -p 8888:8888 tensorflow/tensorflow # Start a Jupyter notebook server
Google Colab: An easy way to learn and use TensorFlow
No install necessary—run the TensorFlow tutorials directly in the browser with Colaboratory, 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.