Installing Django from behind proxy

If you are sitting behind a proxy (like at your work place), you will get the following error trying to install Django.

Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, error(‘Tunnel connection failed: 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )’,))’: /simple/django/

To get around it, execute the following:

pip install django –proxy domain\username:password@proxyhost:port

Leave a Reply

Your email address will not be published. Required fields are marked *