cuda安装参考:https://blog.csdn.net/wf19930209/article/details/81879514
cudnn5.1参考:https://blog.csdn.net/oTengYue/article/details/79506758
安装TensorFlow-gpu版本:sudo pip2.7 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
测试安装结果:
- python2.7
- >>> 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
import cv2 :sudo pip install opencv-python