由于众所周知的原因,使用pip安装tensorflow会因超时而失败
解决方法:使用清华源安装
安装命令:
gpu版本
pip install tensorflow-gpu -i https://pypi.tuna.tsinghua.edu.cn/simple
cpu版本
pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple
如果需要指定版本
pip install tensorflow-gpu==1.8 -i https://pypi.tuna.tsinghua.edu.cn/simple