pip install failing with 407 Proxy Authentication Required

前端 未结 3 1764
粉色の甜心
粉色の甜心 2020-12-06 11:23

I am trying to use the below pip install command, but its failing with Proxy authentication required issue. I have already configured my proxies inside my RHEL7.x Server.

相关标签:
3条回答
  • 2020-12-06 11:42

    Error 407 means that the authentication for the proxy is missing / wrong. Remove the ' from the username:pwd part, i.e. use: pip install --proxy https://username:pwd@proxy:host.

    Try opening an internet connection from that server just prior to installing the Python package, as another option.

    If this is not helping, try the the options given in the answers to the questions here, here and here.

    0 讨论(0)
  • 2020-12-06 11:56

    This is the first thing you should try:

    Open the command prompt(CMD).

    Export the proxy settings :

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

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

    Install the package you want to install:

    :\pip install PackageName

    0 讨论(0)
  • 2020-12-06 11:57

    Open the terminal then execute:

    export http_proxy=http://username:password@proxyAddress:port
    export https_proxy=https://username:password@proxyAddress:port
    

    I try this in git bash, in Windows. I did not find a better answer with no password in a environment variable.

    You could save this code, creating a ".bashrc" file in your home directory.

    0 讨论(0)
提交回复
热议问题