I\'m trying to interact with an API from my Python 2.7 shell using a package that relies on Python\'s requests. Thing is the remote address is blocked by my network (univers
My environment is Ubuntu 16.4 LTS and Python3.5.2
I use pip3 to install libs got the same issue. so I use the command unset ALL_PROXY
to solve this problem and it works.
PS:
use printenv | grep -i proxy
to show the proxy info.
I used all the above methods, but only this worked for me:
set | grep -i all_proxy
it returned:
ALL_PROXY=socks://127.0.0.1:1080/
all_proxy=socks://127.0.0.1:1080/
and then, I did this:
export all_proxy=""
Finally, it didn't appear mistakes again.