Using pip behind a proxy with CNTLM

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

    If you are using Linux, as root:

    env https_proxy=http://$web_proxy_ip:$web_proxy_port pip install something
    

    When you use env it exports the variable https_proxy for the current execution of the command pip install.

    $web_proxy_ip is the hostname or IP of your Proxy $web_proxy_port is the Port

提交回复
热议问题