Ubuntu14.04LTS安装TensorFlow

 Ubuntu14.04LTS安装TensorFlow


1.Install pip (or pip3 for python3) if it is not already installed:

# Ubuntu/Linux 64-bit
$ sudo apt-get install python-pip python-dev

2.Install TensorFlow:

# Ubuntu/Linux 64-bit, CPU only:
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tenso

rflow-0.8.0-cp27-none-linux_x86_64.whl
 
# Ubuntu/Linux 64-bit, GPU enabled. Requires CUDA toolkit 7.5 and CuDNN v4.  For
# other versions, see "Install from sources" below.
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tenso

rflow-0.8.0-cp27-none-linux_x86_64.whl
 
For python3:

# Ubuntu/Linux 64-bit, CPU only:
$ sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tenso

rflow-0.8.0-cp34-cp34m-linux_x86_64.whl
 
# Ubuntu/Linux 64-bit, GPU enabled. Requires CUDA toolkit 7.5 and CuDNN v4.  For
# other versions, see "Install from sources" below.
$ sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tenso

rflow-0.8.0-cp34-cp34m-linux_x86_64.whl


另外一个帖子....

Ubuntu14.04安装tensorflow
上tensorflow官网tensorflow.org学习一番安装流程,发现可以直接用pip安装
Ubuntu14.04,按照官网给的步骤
# For CPU-only version
$ pip install https://storage.googleapis.com/t ... ne-linux_x86_64.whl


在终端里输入: 
$ sudo pip install https://storage.googleapis.com/t ... ne-linux_x86_64.whl
然而提醒我python-pip没有安装
$ sudo apt-get install python-pip
问题解决
再次运行
$ sudo pip install https://storage.googleapis.com/t ... ne-linux_x86_64.whl
时出现类似这样的错误
ascii' codec can't decode byte 0xe5 in position 0: ordinal not in  range(128)
往上翻发现建议我安装python-dev,估计是python-dev没有安装的问题 于是
$ sudo apt-get install python-dev
$ pip install https://storage.googleapis.com/t ... ne-linux_x86_64.whl
搞定,现在在python里可以import tensorflow了,前提需要安装python!

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值