I want to set some variables in my system.
Using echo $http_proxy also gives me the correct result, but when trying to access internet through terminal, I am getting the previous proxy and not the one I set.
I checked /etc/environment and found that it still shows the old proxy. How can I change this environment variable?
Manually set these in the terminal
export http_proxy="http://220.127.116.11:8080" export https_proxy="https://18.104.22.168:8080" export ftp_proxy="ftp://22.214.171.124:8080"
Accessing internet from terminal:
pip install tensorflow
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff579aaa668>, 'Connection to 126.96.36.199 timed out. (connect timeout=15)')'
188.8.131.52 is the old proxy.
I get the same error if I use:
export https_proxy="https://184.108.40.206:8080"; pip install tensorflow
export http_proxy="http://220.127.116.11:8080"; pip install tensorflow
OS: CentOS 7
I am using ssh to login to this system. I asked other users of the server. They are able to use these exact same commands to install.
type -a pip
pip is /usr/bin/pip