VirtualBox Ubuntu 16.04安装Tensorflow

1.安装python-pippython-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.安装完成。出现以下界面表示安装完成。
img

  1. 测试
$ python
>>>import tensorflow as tf
>>>hello=tf.constant('hello')
>>>sess=tf.Session()
>>>print(sess.run(hello))
hello
>>>a=tf.constant(10)
>>>b=tf.constant(32)
>>>print(sess.run(a+b))
4212345678910

5.安装IDE
安装的IDE为Komodo Edit
链接:
http://komodoide.com/download/edit-linux64/#
解压缩后界面如下:
img
安装步骤:

  1. 进入到该文件解压缩的文件夹中
  2. 运行./install.sh,界面如下:

img