-1

I have tried to set the proxy in the bash_profile:

export http_proxy=http://UserID:PWD@202.141.80.24:3128

export https_proxy=http://UserID:PWD@202.141.80.24:3128

export ftp_proxy=http://UserID:PWD@202.141.80.24:3128

Also since my password contains an '@' symbol I escaped it with \ and also tried to replace it with %40.

And I am saving the changes and updating the profile using source ~/.bash_profile

Despite all this, when I run the command:

sudo pip install kmeans-smote

I get Proxy Authentication Error:

Error

Any help would be appreciated. Thanks!

New contributor
n.gaurav is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

Variables in bash are case sensitive and most software expects the proxy to be set in uppercase. It's also a good idea to quote strings as you never know what can upset bash.

export HTTP_PROXY="http://UserID:PWD@202.141.80.24:3128"

export HTTPS_PROXY="http://UserID:PWD@202.141.80.24:3128"

export FTP_PROXY="http://UserID:PWD@202.141.80.24:3128"

NOTE For these sort of shell questions Stack Overflow is usually better for a quick answer.

  • This isn't working either. – n.gaurav Feb 12 at 14:42

Your Answer

n.gaurav is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.