TensorFlow有两个版本:CPU和GPU。
GPU版本TensorFlow-GPU安装请参考:https://blog.csdn.net/Jwenxue/article/details/89300028
本文介绍TensorFlow CPU版本的安装,使用python pip命令就可以安装TensorFlow:
pip install tensorflow
直接使用pip install tensorflow安装时由于服务器在国外,导致下载速度很慢很慢很慢,可能会报超时错误。因此可以指定国内镜像源从而加快下载速度。
pip install tensorflow -i https://pypi.douban.com/simple
常用的国内镜像源如下:
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/