TensorFlow 安装指南 🛠️

1. 系统要求 📋

  • 操作系统: Windows/macOS/Linux
  • Python 版本: 3.7-3.11 (推荐 3.9)
  • GPU 支持: 查看 GPU 配置要求 🖥️

2. 安装方式 📦

使用 pip 安装

pip install tensorflow
TensorFlow_Logo

使用 Conda 安装

conda install -c conda-forge tensorflow
Conda_Logo

从源码编译

git clone https://github.com/tensorflow/tensorflow.git
cd tensorflow
./configure
bazel build --config=opt //tensorflow:tensorflow
Git_Logo

3. 验证安装 ✅

运行以下代码检查版本:

import tensorflow as tf
print(tf.__version__)
Python_Logo

4. 常见问题 ❓

返回首页 🏠