I am having trouble getting pip to work behind a corporate firewall. I added the http and https proxies to my /etc/environment file, and if I execute echo "$HTTP_PROXY" it prints the right thing. However, if I execute env or printenv none of the proxy variables show up. I think this is why pip is failing too. Any insight would be appreciated. My /etc/environment file looks like
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
http_proxy="http://<stuff>.<stuff>.org:80"
HTTP_PROXY="http://<stuff>.<stuff>.org:80"
https_proxy="https://<stuff>.<stuff>.org:443"
HTTPS_PROXY="https://<stuff>.<stuff>.org:443"
And I added the same lines to my ~/.bashrc file as well.
/etc/environment? Did you useexportwhen adding to~/.bashrc? – muru Jun 13 '18 at 14:25.bashrcfile. Thanks for pointing that out. Also, I'm not sure I have logged in again either. I restarted my whole computer, but I am running windows subsystem for Linux (sadface) and it doesn't ask for my credentials on start up, so maybe something funny is going on there. – irh Jun 13 '18 at 14:29