![TensorFlow Tutorial](/tensorflow/images/tensorflow-mini-logo.jpg)
- TensorFlow Tutorial
- TensorFlow - Home
- TensorFlow - Introduction
- TensorFlow - Installation
- Understanding Artificial Intelligence
- Mathematical Foundations
- Machine Learning & Deep Learning
- TensorFlow - Basics
- Convolutional Neural Networks
- Recurrent Neural Networks
- TensorBoard Visualization
- TensorFlow - Word Embedding
- Single Layer Perceptron
- TensorFlow - Linear Regression
- TFLearn and its installation
- CNN and RNN Difference
- TensorFlow - Keras
- TensorFlow - Distributed Computing
- TensorFlow - Exporting
- Multi-Layer Perceptron Learning
- Hidden Layers of Perceptron
- TensorFlow - Optimizers
- TensorFlow - XOR Implementation
- Gradient Descent Optimization
- TensorFlow - Forming Graphs
- Image Recognition using TensorFlow
- Recommendations for Neural Network Training
- TensorFlow Useful Resources
- TensorFlow - Quick Guide
- TensorFlow - Useful Resources
- TensorFlow - Discussion
TensorFlow - Installation
To install TensorFlow, it is important to have “Python” installed in your system. Python version 3.4+ is considered the best to start with TensorFlow installation.
Consider the following steps to install TensorFlow in Windows operating system.
Step 1 − Verify the python version being installed.
![Python Version Installed](/tensorflow/images/python_version_installed.jpg)
Step 2 − A user can pick up any mechanism to install TensorFlow in the system. We recommend “pip” and “Anaconda”. Pip is a command used for executing and installing modules in Python.
Before we install TensorFlow, we need to install Anaconda framework in our system.
![Install Anaconda](/tensorflow/images/install_anaconda.jpg)
After successful installation, check in command prompt through “conda” command. The execution of command is displayed below −
![Conda Command Execution](/tensorflow/images/conda_command_execution.jpg)
Step 3 − Execute the following command to initialize the installation of TensorFlow −
conda create --name tensorflow python = 3.5
![Installation of TensorFlow](/tensorflow/images/installation_of_tensorflow.jpg)
It downloads the necessary packages needed for TensorFlow setup.
Step 4 − After successful environmental setup, it is important to activate TensorFlow module.
activate tensorflow
![Environmental Setup](/tensorflow/images/environmental_setup.jpg)
Step 5 − Use pip to install “Tensorflow” in the system. The command used for installation is mentioned as below −
pip install tensorflow
And,
pip install tensorflow-gpu
![Pip To Install](/tensorflow/images/pip_to_install.jpg)
![Pip To Install TensorFlow](/tensorflow/images/pip_to_install_tensorflow.jpg)
After successful installation, it is important to know the sample program execution of TensorFlow.
Following example helps us understand the basic program creation “Hello World” in TensorFlow.
![Hello World Example](/tensorflow/images/hello_world_example.jpg)
The code for first program implementation is mentioned below −
>> activate tensorflow >> python (activating python shell) >> import tensorflow as tf >> hello = tf.constant(‘Hello, Tensorflow!’) >> sess = tf.Session() >> print(sess.run(hello))