TensorFlow的学习

1.先判断python的版本(因为有些python版本自带pip,可以参考我写的对pip的认识的博客文章),选择是否安装pip,然后安装更新tensorflow如:sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl

2.如果pip install tensorflow报超时,可用pip --default-timeout=100 install -U tensorflow命令进行处理

3.如果直接pip安装tensorflow下载比较慢,可以选择国内镜象下载,方法如下,也可参考http://blog.csdn.net/testcs_dn/article/details/54374849此网址方法

在你的“C:Users你的用户名”目录下创建“pip”目录,“pip”目录下创建“pip.ini”文件(注意:以UTF-8 无BOM格式编码);
“pip.ini”文件内容:

[global]  

index-url=http://mirrors.aliyun.com/pypi/simple/  

[install]  

trusted-host=mirrors.aliyun.com

原文地址:https://www.cnblogs.com/lianxuan1768/p/8078474.html