Set environment variables http_proxy and https_proxy. These can be used by pip as well
http_proxy
https_proxy
pip