主要包括下面两个指令:
$ sudo apt-get install python-pip python-dev
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
但第二个指令貌似不是很顺利,因此先更改pip的源:创建~/.pip/pip.conf文件,内容如下:
[global] timeout = 6000 index-url = http://pypi.douban.com/simple [install] use-mirrors = true mirrors = http://pypi.douban.com
第二个指令改为:sudo pip install -i http://pypi.douban.com/simple/ --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl --trusted-host pypi.douban.com