安装Ubuntu 省略...
Python
安装pip或pip3
sudo apt-get insatll python-pip python-dev
or:
sudo apt-get insatll python3-pip python3-dev
配置~/.pip/pip.conf 主要是配置镜像 不然用国外的源一定会欲仙欲死!!!!!
pipy国内镜像目前有:
https://pypi.douban.com/ 豆瓣
https://pypi.hustunique.com/ 华中理工大学( 好像不行了)
https://pypi.sdutlinux.org/ 山东理工大学( 好像不行了)
https://pypi.mirrors.ustc.edu.cn/ 中国科学技术大学
配置文件的内容:
sudo vim ~/.pip/pip.conf
[global]
index-url = https://pypi.douban.com/simple
timeout = 1000
[install]
use-mirrors = true
mirrors = https://pypi.douban.com
安装Tensorflow
sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
or:
sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
tensorflow网站
编辑hosts文件
64.233.188.121 www.tensorflow.org