How to use pip on windows behind an authenticating proxy

前端 未结 9 1245
谎友^
谎友^ 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:18

    This is how I set it up:

    1. Open the command prompt(CMD) as administrator.
    2. Export the proxy settings :

      set http_proxy=http://username:password@proxyAddress:port

      set https_proxy=https://username:password@proxyAddress:port

    3. Install the package you want to install:

      pip install PackageName

    For example:

提交回复
热议问题