TensorFlow-gpu报错pip._vendor.urllib3.exceptions.ReadTimeoutError:HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.
试过设置超时时间:
pip --default-timeout=100 install tensorflow-gpu
但是下载到一半的时候还是报那个错误
最后采用清华源成功安装,并且速度飞快
pip --default-timeout=100 install tensorflow==2.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
清华源的镜像地址:https://pypi.tuna.tsinghua.edu.cn/simple