安装Python第三方库时遇到WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=Non

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1108: The handshake operation timed out’))’: /simple/opencv-python/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, ConnectionResetError(10054, ‘远程主机强迫关闭了一个现有的连接。’, None, 10054, None))’: /simple/opencv-python/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。’))’: /simple/opencv-python
安装Python第三方库时遇到WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=Non_第1张图片
问题解决:
why not close your VPN
这里报错是由于代码请求超时,也就是说在安装的时候链接资源太慢从而没办法下载,多半是由于你的网络不好造成,国内安装的包大多是从阿里,淘宝,豆瓣等镜像网站上下载库,而你打开VPN之后会调到外网去找国内的镜像网,所以找寻速度很慢,基本找不到,所以出现下载超时的情况。所以关掉VPN再下就可以解决了!

你可能感兴趣的:(笔记)