以下操作基于anaconda进行
新建一个虚拟环境 conda create -n tensorflow python=3.5
打开环境 activate tensorflow
安装 Tensorflow
anaconda search -t conda tensorflow(在给出的信息中可以查看tensorflow不同版本对应的平台及支持的python版本,选择合适的版本号并复制)
anaconda show 粘贴版本号信息在这儿
在不同的镜像搜索文件
pip install -i https://mirros.aliyun.com/pypi/simple/ tensorflow==1.8
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==1.8