in Technology by
What are the steps of TensorFlow - Installation?

1 Answer

0 votes
by

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

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

After successful installation, check in command prompt through “conda” command. The execution of command is displayed below −

Conda Command Execution

Step 3 − Execute the following command to initialize the installation of TensorFlow −

conda create --name tensorflow python = 3.5

Installation of TensorFlow

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

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

Pip To Install TensorFlow

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

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))

Related questions

0 votes
    I have noticed that in most models step parameter is used to indicate the no. of steps to run over data ... epochs? Data shuffling? Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    what are the system requirements for the installation of Jenkins?...
asked Oct 1, 2021 in Technology by JackTerrance
0 votes
    Explain the Vector in TensorFlow?...
asked Nov 3, 2020 in Technology by JackTerrance
0 votes
    What is the Understanding of Artificial Intelligence TensorFlow?...
asked Nov 3, 2020 in Technology by JackTerrance
0 votes
    Why is TensorFlow Popular?...
asked Nov 3, 2020 in Technology by JackTerrance
0 votes
0 votes
    I'am trying to follow this tutorial: ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    I have a Time series data for almost 5 years. Using this data I want to forecast next 2 years. ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 17, 2022 in Education by JackTerrance
0 votes
    Using tf.data.Dataset API to build a data pipeline, I encountered an error in training: pure virtual method ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 13, 2022 in Education by JackTerrance
0 votes
    I'am trying to follow this tutorial: ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 29, 2022 in Education by JackTerrance
0 votes
    Using up-to-date Keras and Tensorflow on Ubuntu 16.04 and 14.04. For the following code: img2D = ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 23, 2022 in Education by JackTerrance
0 votes
    When using model.compile(optimizer = tf.train.AdamOptimizer(), loss = 'sparse_categorical_crossentropy', metrics=[' ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 13, 2022 in Education by JackTerrance
0 votes
    I have a DQN all set up and working, but I can't figure out how to display the loss without ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    I am trying to implement the tutorial given on Tensorflow tutorial on custom training. Due to some reason ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
...