Using pip behind a proxy with CNTLM

前端 未结 30 2285
囚心锁ツ
囚心锁ツ 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

    Under our security policy I may not use https with pypi, SSL-inspection rewrites certificates, it breaks the built-in security of pip for www.python.org. The man in the middle is the network-admin.

    So I need to use plain http. To do so I need to override the system proxy as well as the default pypi:

    bin/pip install --proxy=squidproxy:3128 -i http://www.python.org/pypi --upgrade "SQLAlchemy>=0.7.10"
    

提交回复
热议问题