问题描述
用pip安装python库的时候报错:
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by > ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f60060dbbe0>: Failed to establish a new connection: [Errno 111] Connection refused’,))': /simple/opencv-python/
解决方法
出现问题的原因是设置了代理,可以直接在命令行输入以下指令:
unset https_proxy
unset http_proxy
unset ALL_PROXY
unset all_proxy
然后就可以正常pip安装库了。