Python and Tensorflow installation in Windows for Machine learning.

TensorFLow is open source software library for Machine Intelligence by Google. It make it easier for developers to design, build, and train deep learning models…

Tensorflow is a Python library and it require Python 3.5 and higher otherwise it won’t work.

Follow the below steps to install Python and Tensorflow in Windows system.

Step 1: Install python.

To install Python go to https://www.python.org/

python11

Check out for 64 bit executable installer and download the exe file and run the exe file…

Once installation is done add it in your environment variable..

To find the environment variable in your system follow below steps:

  1. Right-click ‘Computer’ in the Navigation Tree Panel on the left.
  2. Select ‘Properties’ at the bottom of the Context Menu.
  3. Select ‘Advanced system settings’
  4. Click ‘Environment Variables…’ in the Advanced Tab

Then add python_home and python path.

  • Add in system variable name PYTHON_HOME

sub1And add python path in my case python is located in below location C:\Users\xyz..\AppData\Local\Programs\Python\Python36

  • Then add below in path variable

Append ‘;%PYTHON_HOME%\;%PYTHON_HOME%Scripts\’ at the end of the path variable.

sub2 

Restart system once done..

Too check whether Python installed. Just go to cmd prompt and type Python.

If you receive below message then Python is installed successfully.

cmd1

 

Step 2:

To install Tensorflow type below command

python -m pip install tensorflow  Untitled

To check whether tensorflow installed successfully open cmd and check with below commands.

  • python
  • import tensorflow as tf
  • tf.__version__

Untitle1

HaPpY CoDiNg…..

Leave a comment