python - Configuring PIP to work from behind a proxy -


i've installed python 3.4.3 comes pip. want use pip behind proxy did following:

created c:\users\foo\pip\pip.ini , added proxy configuration section:

[proxy] export http_proxy=my_proxy_server:1234 

however, when try run pip install packages, timeout messages:

c:\users\foo>pip install paramiko requirement satisfied (use --upgrade upgrade): paramiko in c:\python3 4\lib\site-packages\paramiko-1.16.0-py3.4.egg collecting pycrypto!=2.4,>=2.1 (from paramiko) retrying (retry(total=4, connect=none, read=none, redirect=none)) after connec tion broken 'connecttimeouterror(, 'connection pypi.python. org timed out. (connect timeout=15)')': /simple/pycrypto/

any ideas i'm doing wrong?

thanks in adv.!

you can use following command pip uses proxy. basic format of form:

 [user:passwd@]proxy.server:port 

for example:

pip --proxy http://<your proxy>:<your port> (for http) pip --proxy https://<your proxy>:<your port> (for https) 

Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -