How to use pip on windows behind an authenticating proxy

前端 未结 9 1261
谎友^
谎友^ 2020-11-28 19:23

My computer is running windows behind a proxy on a windows server (using active directory), and I can\'t figure out how to get through it with pip (in python3).

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 19:55

    I have tried 2 options which both work on my company's NTLM authenticated proxy. Option 1 is to use --proxy http://user:pass@proxyAddress:proxyPort

    If you are still having trouble I would suggest installing a proxy authentication service (I use CNTLM) and pointing pip at it ie something like --proxy http://localhost:3128

提交回复
热议问题