1. 程式人生 > >怎麼解決Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection

怎麼解決Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection

在python中安裝包時發生瞭如圖所示bug,

原因是連線超時,所以需要自己設定安裝源,

解決方法:

在 pip命令後自己設定收集源(-i +url)

eg:pip install requests -i http://pypi.douban.com/simple --trusted-host pypi.douban.com(通過豆瓣)

問題解決。