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 執行 TensorFlow 教學課程,Colaboratory 是 Google 研究專案,旨在協助推廣機器學習教育和研究。這是一個 Jupyter Notebook 環境,不需設定即可使用,而且完全在雲端中執行。閱讀網誌文章

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

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