Fix Python – Using pip behind a proxy with CNTLM

I am trying to use pip behind a proxy at work.
One of the answers from this post suggested using CNTLM. I installed and configured it per this other post, but running cntlm.exe -c cntlm.ini -I -M http://google.com gave the error Connection to proxy failed, bailing out.
I also tried pip install -–proxy=user:pass@localhost:3128 (the default CNTLM po….