人気ブログランキング | 話題のタグを見る

[python][win7]pip と proxy

windows7 に chainer 入れちゃうぜ!とテンション上がったが、
入れようとしたら入らないよ。
proxy のエラーだよ。

D:\Python27\archives\chainer-master>pip install chainer
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connecti
on broken by 'ProxyError('Cannot connect to proxy.', gaierror(11004, 'getaddrinf
o failed'))': /simple/chainer/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connecti
on broken by 'ProxyError('Cannot connect to proxy.', gaierror(11004, 'getaddrinf
o failed'))': /simple/chainer/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connecti
on broken by 'ProxyError('Cannot connect to proxy.', gaierror(11004, 'getaddrinf
o failed'))': /simple/chainer/
Operation cancelled by user


環境変数 HTTPS_PROXY も HTTP_PROXY も指定してあるのだが。
でも結果的に間違いだった。
今まで大丈夫だったのは、ソフト側で対応しててくれたんだなぁ。

失敗
set HTTP_PROXY=http://username:passwd@proxy.example.com:port/
set HTTPS_PROXY=https://username:passwd@proxy.example.com:port/

成功
set HTTP_PROXY=http://username:passwd@proxy.example.com:port
set HTTPS_PROXY=https://username:passwd@proxy.example.com:port


このくらい気を利かせてくれと言いたい気もする。

これで挫けてしまったので、
Ubuntu に chainer 入れようと試みたり、
(会社の LAN のせいで、VM を NAT で接続できず、apt-get できなくて挫折)、
いや caffe にするかとか、
( GPU が AMD だから CUDA が使えないのでは。
  つかそもそも caffe が win に対応してねーわ。
  VM の Ubuntu は前述の理由で apt-get できないし…)
いろいろ紆余曲折して2日も無駄にしてしまった…(;´Д⊂
by xiaoxia | 2015-06-30 17:39 | ソフトウェア
<< [win7][python]c... [win7]DNS の名前解決... >>