TensorFlow 已在下列 64 位元系統上測試並提供支援

  • macOS 10.12.6 (Sierra) 或以上版本 (無 GPU 支援)
  • 透過 Windows 10 19044 或更高版本 (包括 GPU) 的 WSL2 (實驗性功能)
# Requires the latest pip
pip install --upgrade pip
# Current stable release for CPU and GPU pip install tensorflow
# Or try the preview build (unstable) pip install tf-nightly

使用 Python 的 pip 套件管理工具安裝 TensorFlow。

官方套件適用於 Ubuntu、Windows 和 macOS。

TensorFlow Docker 映像檔已設定為執行 TensorFlow。Docker 容器會在虛擬環境中執行,是設定 GPU 支援最簡單的方式。

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

無需安裝,即可透過 Colaboratory (Google 研究專案,旨在協助推廣機器學習教育和研究) 直接在瀏覽器中執行TensorFlow 教學課程。這是一個 Jupyter Notebook 環境,無需設定即可使用,而且完全在雲端中執行。閱讀網誌文章

建構您的第一個 ML 應用程式

在網頁和行動裝置上建立及部署 TensorFlow 模型。
TensorFlow.js 是一個 WebGL 加速 JavaScript 程式庫,可在瀏覽器、Node.js、行動裝置等環境中訓練及部署 ML 模型。
TensorFlow Lite 是適用於行動裝置和嵌入式裝置的輕量級解決方案。