私はSOがこの問題を手助けできると考えています。私がvirtualenvにいるときにパッケージをpipできない
私はvirtualenvにいるときにパッケージをpipできません。私はWindows 7、Python 2.7.12です。例えば
、私はこのようにgitのbashを使用する場合:
(venv2)
[email protected] ~/git/myrepo (master)
$ pip install requests
私は次のエラーを取得する:
Collecting requests
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02A438F0>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/requests/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02A43790>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/requests/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02A43B50>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/requests/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02A43DD0>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/requests/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02A43E50>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/requests/
Could not find a version that satisfies the requirement requests (from versions:)
No matching distribution found for requests
私はvirtualenvのではないですしかし、私はパッケージをインストールピップすることができますちょうど良い。私は似たようなエラーに関する多くのSOの質問を読んだことがありますが、私のケースにはうまく一致しません。
私が試したいくつかの事柄:pythonのアンインストールと再インストール。アップグレードピップ; Pythonのバージョンを切り替える。あなたは正しい方向に私を指すことができる場合
、私は非常にそれが
\これは、それを解決!ありがとう。 – ocertat