2017-07-06 13 views
1

をインストールし、私はピップを更新しようとしていますが、私は次のメッセージを取得しておいてください。私はピップ--versionを実行したときにのpython -mピップ-Uピップのerrno 11004

H:\>python -m pip install -U pip 
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.con 
nection.VerifiedHTTPSConnection object at 0x031AF3B0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/pip/ 
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.con 
nection.VerifiedHTTPSConnection object at 0x031AF3D0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/pip/ 
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.con 
nection.VerifiedHTTPSConnection object at 0x031AF110>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/pip/ 
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.con 
nection.VerifiedHTTPSConnection object at 0x031AF0B0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/pip/ 
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.con 
nection.VerifiedHTTPSConnection object at 0x031AF170>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/pip/ 
Requirement already up-to-date: pip in c:\users\a256886\appdata\local\programs\python\python36-32\lib\site-packages 

私のpython 3.6.1がインストールされていると私はpip 9.0.1を参照してください。

なぜ更新できないのですか?またはpipでパッケージをインストールしますか?何が起こっている?どうすれば修正できますか?

+0

9.0.1はpipの最新バージョンです。なぜあなたはそれを更新しようとしていますか? – jwodder

+0

@jwodder djangoをインストールしたい。私は仮想環境を作成することができましたが、django 'pip install django〜= 1.10.0'をインストールしようとしたとき 同じタイプのエラーが発生しました: '要件を満たすバージョンが見つかりませんでしたdjango〜 = 1.10.0(バージョンより) django〜= 1.10.0'の一致する分布は見つかりませんでした。 –

+0

@ G.Doe:プロキシの背後にいますか? –

答えて

1

あなたはプロキシの背後にいます。あなたが発見したとして、あなたは--proxy引数を使用してpipにプロキシを渡すことができます。

python -m pip install -U pip --proxy http://username:[email protected]_url:port 

または

pip install --upgrade pip --proxy http://username:[email protected]_url:port 

それはの一部としてプロトコルを渡すために必要性を言及していないので、ドキュメントがここに混乱していますプロキシ定義。