title: Using pip behind a proxy with CNTLM
body: <p>I am trying to use pip behind a proxy at work.</p>
  
  <p>One of the answers from <a href="https://stackoverflow.com/questions/9698557/how-to-use-pip-on-windows-behind-an-authenticating-proxy">this post</a> suggested using <a href="http://cntlm.sourceforge.net/" rel="noreferrer">CNTLM</a>. I installed and configured it per <a href="https://stackoverflow.com/questions/9181637/how-to-fill-proxy-information-in-cntlm-config-file">this other post</a>, but running <code>cntlm.exe -c cntlm.ini -I -M http://google.com</code> gave the error <code>Connection to proxy failed, bailing out</code>.</p>
  
  <p>I also tried <code>pip install -–proxy=user:pass@localhost:3128</code> (the default CNTLM port) but that raised <code>Cannot fetch index base URL http://pypi.python.org/simple/</code>. Clearly something's up with the proxy.</p>
  
  <p>Does anyone know how to check more definitively whether CNTLM is set up right, or if there's another way around this altogether? I know you can also set the <code>http_proxy</code> environment variable as described <a href="https://stackoverflow.com/questions/11726881/how-to-set-an-http-proxy-in-python-2-7">here</a> but I'm not sure what credentials to put in. The ones from <code>cntlm.ini</code>?</p>