欢迎来到 TensorFlow 的安装指南页面!以下是安装 TensorFlow 的详细步骤。
系统要求
在开始安装之前,请确保您的系统满足以下要求:
- 操作系统:Linux、macOS 或 Windows
- Python 版本:Python 3.6 或更高版本
安装步骤
以下是在不同操作系统上安装 TensorFlow 的步骤:
Linux 和 macOS
- 打开终端。
- 运行以下命令:
pip install tensorflow
- 安装完成后,您可以使用以下命令检查 TensorFlow 是否安装成功:
python -c "import tensorflow as tf; print(tf.__version__)"
Windows
- 下载 TensorFlow 的安装包:TensorFlow 安装包。
- 打开命令提示符窗口,导航到安装包所在的目录。
- 运行以下命令:
pip install tensorflow-<version>.whl
- 安装完成后,您可以使用以下命令检查 TensorFlow 是否安装成功:
import tensorflow as tf
print(tf.__version__)
其他资源
如果您需要更多关于 TensorFlow 的安装和使用信息,请访问以下链接:
TensorFlow Logo