Trying to install a package using pip in which the network has a firewall and we needed to set a proxy on the command.
This is the syntax we followed:
pip install --proxy=domain\username:passwd@proxy.address:port package_name
But it fails (error message below):
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 authenticationrequired'))'
The tricky part is that user's password has an '@' in the middle, I'm wondering if it's messing the syntax (as the system understands the proxy address is right after the first '@').
We tried to escape the @ from the password with: @ and also using %40, and even \%40. None of them worked.
Also tried to SET a variable to pass the proxy URL with the credentials to overcome the command line chars read, but didn't work as well.
Any suggestions?