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

后端 未结 4 1807
灰色年华
灰色年华 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:12

    In order to add a proxy option in the terminal the following line solved the problem for me:

    pip install package_name_here --proxy https://user_name:password@proxyname:port
    

提交回复
热议问题