您的位置:首页 > 其它

VirtualBox Ubuntu 16.04安装Tensorflow

2017-10-13 12:06 405 查看

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[/code] 
【注】如果有错误,可以尝试使用上述命令重新安装

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
,界面如下:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: