在python中安装包出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))

所以最终的
解决办法:pip install keras -i http://pypi.douban.com/simple --trusted-host pypi.douban.com(其中的keras是你需要下载的,根据自己需求自行更改)

永久的设置方法

设置pip/pyenv国内加速源
https://www.cnblogs.com/haima/p/15536558.html

[Haima的博客] http://www.cnblogs.com/haima/
原文地址:https://www.cnblogs.com/haima/p/15534521.html