pip config set global.HTTPS_PROXY https://127.0.0.1:<端口号>
pip config set global.HTTP_PROXY https://127.0.0.1:<端口号>
如果遇到WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response'))'之类的错误,一般是因为代理配置有问题导致的,重新设置正确的端口号即可