pipinstall安装特别慢,除了配置conda的源,可以临时指定源,以提高下载速度
比如连接超时, Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=‘pypi.org’, port=443): Read timed out. (read timeout=15)”
,)’: /simple/keras/所以需要自己设定安装源
解决方法:
在 pip命令后自己设定收集源(-i +url)
eg:pip install requests -i http://pypi.douban.com/simple --trusted-host pypi.douban.com(通过豆瓣)
pip install xxx -i https://pypi.tuna.tsinghua.edu.cn/simple(使用清华镜像)
其他,还有中科大等源。
其他还有提前下好whl,本地安装。