Quantcast
Viewing all articles
Browse latest Browse all 2817

`http_proxy` not showing up with `printenv` on WSL

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.


Viewing all articles
Browse latest Browse all 2817

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>