ubuntu 64位 + tensorflow(cpu)之pip安装
2017-03-27 21:11
471 查看
Tensorflow:
TensorFlow是谷歌基于DistBelief进行研发的第二代人工智能学习系统,主要是深度神经网络模型。
安装配置:
因为不支持Windows系统,只能在Mac或Linux上使用,因此Windows系统可以装个VM虚拟机。官网是提供了pip, Docker, Virtualenv, Anaconda 等多种方法安装TensorFlow,但是我只走了pip这一条路。
本人使用的是Ubuntu 64位版本,没有多少坑,直接跟着官网走就行(比以前搞得Xamarin,RN之类的要顺畅不知道多少倍),顺心不少。
0.8.0版本:
安装pip
python2.7版本:
[html] view
plain copy
# Ubuntu/Linux 64-bit
$ sudo apt-get install python-pip python-dev
python3.4版本:
[html] view
plain copy
# Ubuntu/Linux 64-bit
$ sudo apt-get install python3-pip python3-dev
安装TensorFlow
python2.7版本:
[html] view
plain copy
# Ubuntu/Linux 64-bit, CPU only, Python 2.7:
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
python3.4版本:
[html] view
plain copy
# Ubuntu/Linux 64-bit, CPU only, Python 3.4:
$ sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
0.11.0rc1版本:
安装pip和0.8.0版本一样,就不赘述了。
安装TensorFlow
python2.7
[html] view
plain copy
# Ubuntu/Linux 64-bit, CPU only, Python 2.7
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc1-cp27-none-linux_x86_64.whl
python3.4
# Ubuntu/Linux 64-bit, CPU only, Python 3.4 $ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc1-cp34-cp34m-linux_x86_64.whl
python3.5
[html] view
plain copy
# Ubuntu/Linux 64-bit, CPU only, Python 3.5
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc1-cp35-cp35m-linux_x86_64.whl
最后统一调用
[html] view
plain copy
# Python 2
$ sudo pip install --upgrade $TF_BINARY_URL
# Python 3
$ sudo pip3 install --upgrade $TF_BINARY_URL
注意:
1.以上皆为CPU only版本,TensorFlow可以使用GPU启用版本为其运算加速,但我使用了VM虚拟机,又是GTX1070最新显卡,鬼知道会出什么岔子,因此没有用。2.极客学院只针对了0.8.0版本进行翻译,没有之后版本的。
3.Ubuntu本身自带python3.5.2和2.7版本,不需要另行安装。
4.3Python3.5版本的TensorFlow至少0.9.0版本。
相关文章推荐
- ubuntu 64位 + tensorflow(cpu)之pip安装
- ubuntu16.04LTS安装tensorflow1.1.0(pip方式/python2.7版本/cpu版本)
- TensorFlow安装方法一【VirtualEnv方式】(Ubuntu14.04 64位 cpu)
- 在ubuntu16.04(cpu)上安装tensorflow
- 64位ubuntu16.04安装tensorflow的方方面面
- 如何在64位win7系统安装Anaconda、CPU版tensorflow、keras、pycharm
- Ubuntu 16.04安装tensorflow,theano,keras和caffe,针对CPU only
- Tensorflow 在 Ubuntu 64位16.04.2的安装
- [Deep Learning-01]Ubuntu14.04+CPU+下Tensorflow安装
- Ubuntu pip安装tensorflow遇到的问题
- 深度学习之Ubuntu下安装caffe和TensorFlow的cpu版本
- Ubuntu16.04下安装tensorflow(Anaconda3+pycharm+tensorflow+CPU)
- ubuntu14.04系统中安装tensorflow(cpu版)
- 深度学习之Ubuntu下安装caffe和TensorFlow的cpu版本
- Tensorflow Ubuntu16.04上安装及CPU运行Tensorboard、CNN、RNN图文教程
- VMWare下安装ubuntu64位出现错误“kernel requires an x86_64 cpu, but only detected ”
- Ubuntu 14.04-64bit安装pip遇到的问题及tensorflow的安装
- TensorFlow安装方法二【第一步:GPU环境配置部分(装CPU版跳过直接看第二步)】(Windows10 64位 )
- ubuntu16.04 64位 cpu安装tensorflow+theano+keras+caffe+xgboost
- ubuntu 16.04 安装Tensorflow(CPU和GPU)