Monday, 5 December 2016

Installing Tensorflow

Installation

# Ubuntu/Linux 64-bit
$ sudo apt-get install python-pip python-dev
$ export
TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.0rc0-cp27-none-linux_x86_64.whl

$ sudo pip install
--upgrade $TF_BINARY_URL


To check if installation is successfull :

$ python
>>> import tensorflow as tf
No error after this statement
CNTRL + z


Finding and adding path of the tensorflow

$ python -c 'import os; import inspect; import tensorflow;
print(os.path.dirname(inspect.getfile(tensorflow)))'

result : /usr/local/lib/python2.7/dist-packages/tensorflow



No comments:

Post a Comment