How To Run Pip3+git From Behind Proxy With Docker?
Solution 1:
fatal: unable to connect to github.com:github.com[0: 192.30.253.112]: errno=Connection timed outgithub.com[1: 192.30.253.113]: errno=Connection timed out
The error message seem like cause by RUN pip3 install
, so add proxy for git doesn't work for this.
You could try add HTTPS_PROXY
env before pip install
.
ENV HTTPS_PROXY=https://myproxy:1111
Solution 2:
Have you tried the following?
pip3 install yourmodulename --trusted-host pypi.python.org
Solution 3:
The problem is probably that you are behind a corporate proxy/firewall and outgoing connections are being blocked somewhere. A simple solution is just to change to the https version of the command:
Change:
pip3 install git+git://github.com/theano/theano.git@rel-${THEANO_VERSION}
To:
pip3 install git+https://github.com/theano/theano.git@rel-${THEANO_VERSION}
Alternatively:
You may want to try the steps here: https://help.github.com/articles/using-ssh-over-the-https-port/
This will redirect all git connections through the https protocol, which most companies allow :)
Good luck!
Post a Comment for "How To Run Pip3+git From Behind Proxy With Docker?"