
- TensorFlow 教程
- TensorFlow - 主页
- TensorFlow - 简介
- TensorFlow - 安装
- 了解人工智能
- 数学基础
- 机器学习与深度学习
- TensorFlow - 基础知识
- 卷积神经网络
- 循环神经网络
- TensorBoard 可视化
- TensorFlow - 词嵌入
- 单层感知器
- TensorFlow - 线性回归
- TFLearn 及其安装
- CNN 和 RNN 区别
- TensorFlow - Keras
- TensorFlow - 分布式计算
- TensorFlow - 导出
- 多层感知器学习
- 感知器的隐藏层
- TensorFlow - 优化器
- TensorFlow - 异或实现
- 梯度下降优化
- TensorFlow - 形成图
- 使用 TensorFlow 进行图像识别
- 神经网络训练的建议
- TensorFlow 有用资源
- TensorFlow - 快速指南
- TensorFlow - 有用的资源
- TensorFlow - 讨论
TensorFlow - 安装
要安装 TensorFlow,在系统中安装“Python”非常重要。Python 3.4+ 版本被认为是开始安装 TensorFlow 的最佳版本。
请考虑以下步骤在 Windows 操作系统中安装 TensorFlow。
步骤 1 - 验证正在安装的 python 版本。

步骤 2 - 用户可以选择任何机制在系统中安装 TensorFlow。我们推荐“pip”和“Anaconda”。pip是Python中用于执行和安装模块的命令。
在安装 TensorFlow 之前,我们需要在系统中安装 Anaconda 框架。

安装成功后,通过“conda”命令检查命令提示符。命令的执行如下所示 -

步骤 3 - 执行以下命令来初始化 TensorFlow 的安装 -
conda create --name tensorflow python = 3.5

它会下载 TensorFlow 设置所需的必要包。
步骤 4 - 成功设置环境后,激活 TensorFlow 模块非常重要。
activate tensorflow

步骤 5 - 使用 pip 在系统中安装“Tensorflow”。用于安装的命令如下 -
pip install tensorflow
和,
pip install tensorflow-gpu


安装成功后,了解TensorFlow的示例程序执行情况很重要。
以下示例帮助我们了解 TensorFlow 中的基本程序创建“Hello World”。

第一个程序实现的代码如下 -
>> activate tensorflow >> python (activating python shell) >> import tensorflow as tf >> hello = tf.constant(‘Hello, Tensorflow!’) >> sess = tf.Session() >> print(sess.run(hello))