Using pip behind a proxy with CNTLM

前端 未结 30 2661
囚心锁ツ
囚心锁ツ 2020-11-22 11:00

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 runnin

30条回答
  •  情书的邮戳
    2020-11-22 11:40

    I had the same issue : behind a corporate proxy with auth at work, I couldn't have pip work, as well as Sublime Text 2 (well, it worked with custom setup of my proxy settings). For pip (and I'll try that on git), I solved it installing cntlm proxy. It was very simple to configure :

    1. Edit cntlm.ini
    2. Edit "Username", "Domain", "Password" fields
    3. Add a "Proxy" line, with your proxy settings : server:port
    4. Make sure the line "NoProxy" integrates "localhost" (like that by default)
    5. Note the default port : 3128
    6. Save and that's it.

    To test that works, just launch a new command line tool, and try :

    pip install django --proxy=localhost:3128
    

    That worked for me. Hope this will help you.

提交回复
热议问题