pip install failing with 407 Proxy Authentication Required

你离开我真会死。 提交于 2019-12-05 02:01:01

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

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.

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.

I am also facing the same issue by using below command I'm able to install

sudo pip install PackageName
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!