I used to set up environment evariables http_proxy and https_proxy (with user + password) in the past to use Pip (on Windows) behind a corporate proxy. But recently I needed to
You need to set proxy option while installing the package. example:
pip install --proxy userid:password@proxy.domain.com:yourport