VirtualBox Ubuntu 16.04安装Tensorflow
1.安装python-pip
和python-dev
sudo apt-get install python-pip python-dev
2.安装Tensroflow
sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
【注】如果有错误,可以尝试使用上述命令重新安装
3.安装完成。出现以下界面表示安装完成。
4. 测试
$ python
>>>import tensorflow as tf
>>>hello=tf.constant('hello')
>>>sess=tf.Session()
>>>print(sess.run(hello))
hello
>>>a=tf.constant(10)
>>>b=tf