VirtualBox Ubuntu 16.04安装Tensorflow

来源:互联网 发布:2015休闲食品销售数据 编辑:程序博客网 时间:2024/06/18 06:47

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

4. 测试

$ 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))42

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

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

原创粉丝点击