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
In order to add a proxy option in the terminal the following line solved the problem for me:
pip install package_name_here --proxy https://user_name:password@proxyname:port