ubuntu14.04系统中安装tensorflow(cpu版)
来源:互联网 发布:拍卖网网站源码 编辑:程序博客网 时间:2024/05/15 09:39
第一步:安装pip工具
sudo apt-get install python-pip python-dev第二步:安装tensorflow-cpu版
#安装cpu版0.9.0版本sudo pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl#安装cpu版0.5.0版本:sudo pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl#安装gpu版0.9.0sudo pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl#安装gpu版0.5.0版本:sudo pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
第三步:打开sublime-text3 使用SFTP连接ubuntu系统出现如下错误
The SSH host key has changed. This could indicate a potential security breach, or that the domain you are connecting to recently moved servers.If you are confident this is not a security breach you can delete the old host key and try again.
1. Win XP: Start > Run > regedit.exe
Win Vista/7: Start > regedit
2. Expand to HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys and delete the entry including @22:10.0.83.202
打开windows7下按以上步骤打开并删除相应记录
第四步:linux上测试tensor测试文件
test.pyimport numpyimport tensorflow as tfhello = tf.constant("hello,tensorflow")sess = tf.Session()print sess.run(hello)a = tf.constant(10)b = tf.constant(20)print sess.run(a+b)linux安装anaconda2 下载地址:https://repo.continuum.io/archive/index.html 安装到/usr/local/anaconda2中
或者指令:sudo apt-get install python-dev 软件后在安装numpy 指令:sudo apt-get install python-numpy
tensorflow的安装目录:/usr/local/lib/python2.7/dist-packages/tensorflow
mnist的数据集下载地址为: http://yann.lecun.com/exdb/mnist/
train-images-idx3-ubyte.gz: training set images (9912422 bytes)
train-labels-idx1-ubyte.gz: training set labels (28881 bytes)
t10k-images-idx3-ubyte.gz: test set images (1648877 bytes)
t10k-labels-idx1-ubyte.gz: test set labels (4542 bytes)
0 0
- ubuntu14.04系统中安装tensorflow(cpu版)
- ubuntu14.04系统中安装tensorflow(cpu版)
- ubuntu14.04系统中安装tensorflow(gpu版)
- ubuntu14.04系统中安装tensorflow(gpu版)
- TensorFlow安装,基于 VirtualEnv (Ubuntu14.04 64位 cpu)
- Ubuntu14.04下安装TensorFlow(Only CPU)
- Ubuntu14.04+CPU+Tensorflow
- TensorFlow安装(Ubuntu14.04)
- [Deep Learning-01]Ubuntu14.04+CPU+下Tensorflow安装
- Ubuntu14.04源码编译安装CPU版本的tensorflow
- ubuntu14.04 下使用虚拟环境Virtualenv安装Tensorflow cpu
- Linux系统下安装TensorFlow(CPU或者GPU版)
- win7系统安装GPU/CPU版tensorflow
- Ubuntu14.04 安装 tensorflow
- ubuntu14.04安装TensorFlow
- ubuntu14.04安装Tensorflow
- ubuntu16.04中安装CPU版的tensorflow教程
- ubuntu14.04Lts安装Tensorflow(1)
- 网络基础知识记录
- Product of Array Except Self 题解
- 在 Ubuntu 上用 StrongSwan 安装 IKEv2 VPN 服务器
- BZOJ 1045/1465: [HAOI2008] 糖果传递
- CentOS 6.5 中安装 RabbitMQ -单机版
- ubuntu14.04系统中安装tensorflow(cpu版)
- Linux下实现脚本监测特定进程占用内存情况
- Combination Sum II
- ManualResetEvent和AutoResetEvent 区别
- Scala入门:类
- 1.计算蔬菜总价
- Hi3518e安装第三步
- QT SQLITE 判断表是否存在
- Android4.4系统增加LCD 屏幕旋转功能