How to configure PIP per config file to use a proxy (with authentification)?

后端 未结 4 1808
灰色年华
灰色年华 2021-02-01 08:29

I used to set up environment evariables http_proxy and https_proxy (with user + password) in the past to use Pip (on Windows) behind a corporate proxy. But recently I needed to

4条回答
  •  野性不改
    2021-02-01 09:28

    You need to set proxy option while installing the package. example:

    pip install --proxy userid:password@proxy.domain.com:yourport
    

提交回复
热议问题