Install CPU Version on Ubuntu & Windows
For Ubuntu 64bit OS
First Process is to install CPU Version of TensorFlow. CPU version is mostly recommended for Tensor Flow installation.- Download the whi file from https://pypi.python.org/pypi/tensorflow
- Create a Virtual Path & Install the whi file
- For Python 2: pip2 install [whi file path]
- For Python 3: pip3 install [whi file path]
- Verify the Tensorflow installation:
$ python3 >>> import tensorflow as tf >>> hello = tf.constant(‘Hello. Tensorflow!') >>>sess=tf.Session() >>>sess.run(hello) ‘Hello, TensorFlow!' >>>a=tf.constant(10) >>>b=tf.constant(32) >>>sess.run ( a + b) 42 >>>sess.close()For Windows-64bit OS: CPU version is mostly recommended for Tensor Flow installation in Windows. Step-1: Download the whi file from https://pypi.python.org/pypi/tensorflow Tensorflow-1.7.0-cp35-cp35m-win_amd64.whi Step-2: Installing the whi file: Create a Virtual Path and install the respective whi files. For python 2 pip2 install [whi file path] For Python 3 pip3 install [whi file path] Step-3: Verify the Tensorflow installation:
$python3 >>> import Tensorflow as tf >>> hello = tf.constant(‘Hello. Tensorflow!') >>>sess=tf.Session() >>>sess.run(hello) ‘Hello, TensorFlow!' >>>a=tf.constant(10) >>>b=tf.constant(32) >>>sess.run ( a + b) 42 >>>sess.close()