Using pip behind a proxy with CNTLM

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

    Open the Windows command prompt.

    Set proxy environment variables.

    set http_proxy=http://user:password@proxy_ip:port
    set https_proxy=https://user:password@proxy_ip:port
    

    Install Python packages using proxy in the same Windows command prompt.

    pip install --proxy="user:password@proxy_ip:port" package_name
    

提交回复
热议问题