Windows10x64のVisualStudio2017 Professinalで、Pythonの学習を始めました。
あるパッケージを追加しようとしたところ、pip自体が古いとのエラーが現れたので、こちらのサイトを参考に、アップグレードを試みました。実行したコマンドは「py -m pip install --force-reinstall -U pip」で、コマンドプロンプトを管理者権限で対応したところで状況に変わりなしです。
しかし、以下画像のとおりエラーとなります。 Failed to establish a new connection:が4行表れています。
また赤字部分では「Could not find a version that satisfies the requirement pip (from versions: )
No matching distribution found for pip」と表示されています。
![
こちらが、エラー出力された文面です。
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E7A777ED30>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pip/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E7A776FF28>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pip/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E7A776FF60>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pip/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E7A776FDD8>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pip/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E7A776FC88>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pip/
Could not find a version that satisfies the requirement pip (from versions: )
No matching distribution found for pip
You are using pip version 10.0.1, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
学習初日から 躓き 心折れそうです。どうかお助け下さい。
回答1件
あなたの回答
tips
プレビュー