pipwin icon indicating copy to clipboard operation
pipwin copied to clipboard

Not working behind firewalls

Open GadgetSteve opened this issue 5 years ago • 4 comments

As there is no command line options for --proxy or similar and the settings that pip uses are not picked up this tool will not work if you are behind a firewall that requires such settings.

GadgetSteve avatar Apr 18 '19 13:04 GadgetSteve

Thanks for the suggestion. I can add a --proxy thing, but can't say when. It might be a short thing and probably just needs an extra dict with each requests call. Not sure if anything else is needed though.

lepisma avatar Apr 20 '19 20:04 lepisma

I use environment variables http_proxy and https_proxy. I set them either locally in bat-file or globally in system-wide properties. And it works fine for me.

Example for Windows (pipwin_run.bat file):

set http_proxy=http://127.0.0.1:8080
set https_proxy=http://127.0.0.1:8080

pipwin %*

Replace 127.0.0.1:8080 to your proxy ip-address and port.

goriy avatar Feb 18 '20 13:02 goriy

I know this issue hasn't had any attention for a while - but I'd like to second this request. pipwin is invaluable in setting up some environments, but sometimes those environments need to be set up in the enterprise where proxies with usernames, passwords, and odd port choices exist.

Using the standard pip format for proxies would be good. --proxy=proxy.address:port

It's probably worth mentioning, also, that across a few organisations now I've not only had to use proxy, but also --trusted-host in order to get through the proxy.

anakaine avatar Aug 02 '20 22:08 anakaine

can someone do a PR here?

lepisma avatar Aug 08 '20 12:08 lepisma