重新安装tensorflow时报timeout
因为在运行某个程序的时候,找了半天没找到原因,百度一下说是让重装一下TF的版本,从2.3.0降为2.0.0。
pip install tensorflow
报错: socket.timeout: The read operation timed out
解决方法:
pip --default-timeout=100 install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple
这里用的是清华镜像源,其他的镜像源也行,这样再运行一下,就ok了。