TensorFlow install using pip

TensorFlow install on ubuntu
(This is referenced pip install tutorial on tensorflow.org -> https://www.tensorflow.org/versions/r0.7/get_started/os_setup.html#pip-installation)

Firstly, I install virtual box for using linux ubuntu on my window environment.
(Tensorflow cannot use on original window system.)

Virtual Box is that possible run virtual machine such as VMware, Parallels and so on.

One thing, after install ubuntu using Virtual box, screen resolution is not normal, then you have to install  'guest extension cd'.

refer to virtual box usage and install ubuntu in the web.

So suppose our system is ubuntu.

run terminal and type this command after install tensor flow.

# Ubuntu/Linux 64-bit
$ sudo apt-get install python-pip python-dev

$ sudo apt-get update

$ sudo easy_install pip

# Ubuntu/Linux 64-bit, CPU only:
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp27-none-linux_x86_64.whl



And test tensorflow is install well or not
$ python
...
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
Hello, TensorFlow!
>>> a = tf.constant(10)
>>> b = tf.constant(32)
>>> print(sess.run(a + b))
42
>>>



Comments

Popular posts from this blog

(OpenCV Study) Background subtractor MOG, MOG2, GMG example source code (BackgroundSubtractorMOG, BackgroundSubtractorMOG2, BackgroundSubtractorGMG)

OpenCV Stitching example (Stitcher class, Panorama)

Example source code of extract HOG feature from images, save descriptor values to xml file, using opencv (using HOGDescriptor )

Real-time N camera stitching Class.

Optical Flow sample source code using OpenCV

OpenCV Drawing Example, (line, circle, rectangle, ellipse, polyline, fillConvexPoly, putText, drawContours)

Video Stabilization example source code, (using cvFindHomography, cvWarpPerspective functions in openCV)

SICK LMS511 sensor data acquisition interface (source code, C++/MFC)

8 point algorithm (Matlab source code) / The method to get the Fundamental Matrix and the Essential matrix

Image warping (using opencv findHomography, warpPerspective)