系统代理忽略 Pip 镜像站

问题

pip 设置了阿里云的镜像站,但是安装包的时候总是会出现下面的错误:

Looking in indexes: https://mirrors.aliyun.com/pypi/simple/

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory'))': /pypi/simple/pykeepass/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory'))': /pypi/simple/pykeepass/

是因为有系统代理,本来是为了方便上网的,没想到这里反而出了问题。

解决

在例外服务器列表最后添加了 mirrors.aliyun.com