Ubuntu 16.04 LTS安装TensorFlow(Anaconda 4.3.1)

Installing TensorFlow on Ubuntu【官方链接】
安装anconda的命令是:bash+空格+包名 等待安装完毕即可,这里的包是下载下来的离线包
Anaconda下载链接
这里写图片描述

Ubuntu 16.04 LTS操作系统镜像下载
这里写图片描述
Ubuntu 16.04 LTS镜像下载链接

【Ubuntu和Anconda安装好之后执行以下操作】

— 更换anconda源(国外经常被墙的,换为清华镜像站)

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

conda config --set show_channel_urls yes  

— 创建环境(linux的tensorflow需要python3.6)

conda create -n tensorflow python=3.6.0  

— 进入环境

source activate tensorflow 

— 安装tensorflow

pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.0-cp36-cp36m-linux_x86_64.whl  

— 检验安装是否成功

python  
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

马超的博客

谢谢大佬的赞赏 :)

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值