How to use pip on windows behind an authenticating proxy

前端 未结 9 1246
谎友^
谎友^ 2020-11-28 19:23

My computer is running windows behind a proxy on a windows server (using active directory), and I can\'t figure out how to get through it with pip (in python3).

9条回答
  •  清酒与你
    2020-11-28 20:13

    You may also run into problems with certificates from your proxy. There are plenty of answers here on how to retrieve your proxy's certificate.

    On a Windows host, to allow pip to clear your proxy, you may want to set an environment variable such as:

    PIP_CERT=C:\path\to\certificate\file\in\pem\form\myproxycert.pem
    

    You can also use the --cert argument to PIP with the same result.

提交回复
热议问题