pip see proxy settings code example
Example 1: pip proxy settings
pip install --proxy=https://[username:password@]proxyserver:port somepackage
Example 2: pip config proxy
pip install package_name_here --proxy https://user_name:password@proxyname:port