Here are the steps how to configure proxy (with auth.) in pip’s config file (pip.ini)
- (if it does not already exist) Create a folder named ‘pip’ and inside it a file named ‘pip.ini’ as described here: https://pip.pypa.io/en/stable/user_guide/#config-file (location an name may differ per platform – e.g. on Windows it’s %APPDATA%\pip\pip.ini)
-
edit pip.ini file and add
[global] proxy = http://user:password@proxy_name:port
- That’s it!
Example for proxy with authentification (user + password):
proxy = http://butch:secret@proxyname:1234
proxyname can be an IP adress, too
Example for proxy without auth.:
proxy = http://proxyname:1234