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 team. TensorFlow 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.
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.
Install Tensorflow on Windows
Step 1 : Install Anaconda
- Visit Anaconda.com/downloads
- Select Windows
- Download the .exe installer
- Open and run the .exe installer
- 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
pip3 install --upgrade tensorflow
Once you Install Tensorflow it will install with some dependent packages.
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.
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.