2017-07-28 8 views
0

要求をインストールしようとしたところ、次のエラーメッセージが表示されます。手動でダウンロードしてローカルファイルに基づいて同じコードを実行しようとしましたが、同じ問題が発生していました。私はピップを介して何かをダウンロードしようとすると、私は同じエラーメッセージが表示されているので、それは要求側にあるとは思わない。pip install requestsエラー

C:\Users\212615669>pip install requests 
Collecting requests 
    Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec 
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne 
ction.VerifiedHTTPSConnection object at 0x031251D0>: Failed to establish a new c 
onnection: [Errno 11004] getaddrinfo failed',)': /simple/requests/ 
    Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec 
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne 
ction.VerifiedHTTPSConnection object at 0x03125190>: Failed to establish a new c 
onnection: [Errno 11004] getaddrinfo failed',)': /simple/requests/ 
    Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec 
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne 
ction.VerifiedHTTPSConnection object at 0x03125090>: Failed to establish a new c 
onnection: [Errno 11004] getaddrinfo failed',)': /simple/requests/ 
    Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec 
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne 
ction.VerifiedHTTPSConnection object at 0x03121FD0>: Failed to establish a new c 
onnection: [Errno 11004] getaddrinfo failed',)': /simple/requests/ 
    Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec 
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne 
ction.VerifiedHTTPSConnection object at 0x03121EB0>: Failed to establish a new c 
onnection: [Errno 11004] getaddrinfo failed',)': /simple/requests/ 
    Could not find a version that satisfies the requirement requests (from version 
s:) 
No matching distribution found for requests 
+0

にこのエラーを試してみてくださいインターネット接続ません要求ライブラリのインストールに –

+0

に関してれる彼らは、私がどのようにプロキシ –

答えて

0

簡単な方法は、プロキシ情報を与えることです。

pip install --proxy=user:[email protected]:port requests 

第二の方法は、

set http_proxy=http://username:[email protected]:port 
set https_proxy=https://username:[email protected]:port 
pip install requests 
+0

待ちを使用しています私のプロキシ情報を取得しますか?私はローカルホストや何かのように置くのですか? – Nick

+0

これを確認してくださいhttps://stackoverflow.com/questions/22368515/how-to-see-the-proxy-settings-on-windows – skr

+0

私のプロキシ情報を見つけるのに苦労しています。そのスレッドは私のネットワークを直接制御しません)。あなたはそれをダウンロードする他の方法を知っていますか?私はすべてが含まれていると信じてダウンロードされたファイルとジップを持っている – Nick

0
sudo -H pip install requests --proxy="my_proxy_name:port" 

を設定エクスポートプロキシを使用しているこの

+0

おそらく愚かな質問ですが、正確にプロキシになるだろうか? localhostのようにする方法はありますか? – Nick

+0

https://stackoverflow.com/questions/22368515/how-to-see-the-proxy-settings-on-windows?noredirect=1&lq=1 –