install tensorflow

Install Tensorflow

Install TensorFlow on Windows with python is quite easy.

What is TensorFlow
TensorFlow is an open source machine learning framework or set of the library with high-performance numerical computation power. TensorFlow develops by engineer and researcher from Google Brain teamTensorFlow is cross-platform allow the variety of platform (CPU,GPU,TPU), including mobile and embedded platforms and even tensor processing units (TPUs), which are specialized hardware to do the tensor math on. It is widely used in Machine learning and Deep Learning.

Google has announced the release of TensorFlow 1.8! for Major Features And Improvements look the Github Repo TensorFlow 1.8!

Machine learning is a complex design and algorithm. But implementing machine learning models is less complex and difficult than it was earlier, Credit goes to machine learning open source frameworks like TensorFlow that easy the process of acquiring data, training models, test model and serving predictions,
and show future results.

Machine learning is a complex design and algorithm. But implementing machine learning models is a bit less complex and difficult than it was earlier, Credit goes to machine learning frameworks like Google’s TensorFlow that easy the process of acquiring data, training models, test model and serving predictions, and show future results.

Before installing TensorFlow make sure your computer meets all the necessary requirement and recommendation with good computing power.

TensorFlow only support 64-bit Python 3.5.x version on Windows so make sure this prerequisite already exist.

Install Tensorflow on Windows

Step 1 : Install Anaconda

  1. Visit Anaconda.com/downloads
  2. Select Windows
  3. Download the .exe installer
  4. Open and run the .exe installer
  5. Once installation completed open Anaconda Prompt and type python
    (base) C:\Users\onclick360>python
    Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.

Step 2 : After successfully installation of Anaconda run below command to install TensorFlow.

To install any python module or package pip and conda are commonly used package management tools, which search.download and install, uninstall any 3rd party python packages.

 conda install -c conda-forge tensorflow 

or

pip3 install --upgrade tensorflow

Once you Install Tensorflow it will install with some dependent packages.

install tensorflow

Once Install Tensorflow on windows complete test TensorFlow by import the module and do some basic check.

Step 3 : Check the tensorflow by using some code.

>>> import tensorflow as tf
>>> hello = tf.constant('Hello, Tensorflow Testing')
>>> session = tf.Session()
>>> print(session.run(hello))
b'Hello, Tensorflow Testing'
>>> A = tf.constant(5)
>>> B = tf.constant(4)
>>> print(session.run(A * B))
20
>>> print(tf.__version__)
1.8.0

Install TensorFlow on Windows using Docker

step 1. Setup a Docker environment in Windows by the following article.

Install Docker for Windows desktop

Step 2. Once Docker configured download and install TensorFlow docker image.

docker run -it -p 8888:8888 tensorflow/tensorflow

Navigate web browser to xxx.xx.xx.xx:8888 (or whatever web server port your web app is running on) and you should be able to see your web apps.

You May Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *