【対応例】pip installでTensorFlowがインストールできない…

【対応例】pip installでTensorFlowがインストールできない…

 

【問題と解決方法例 – Issue & Example Solution】pip installでTensorFlowがインストールできない – Unable to install TensorFlow with pip install

 

 

pip installでTensorFlowをインストールしようとした際に遭遇したエラーです。
This is the error I encountered when I tried to install “TensorFlow” using “pip install”.

 

最終確認日 – Date of last confirmation

2021.1.30

 

開発環境 – Development Environment

 

 

・Visual Studio Code1 1.52.1
・macOS Big Sur 11.1
・Command Line Tools:Xcode 12.4(12D4e)
・ターミナル – Terminal:zsh
・Homebrewでインストールしたpyenvを利用 – Use pyenv installed by Homebrew
・pyenv 1.2.21
・Python:3.6.9
・pip:18.1

 

 

問題 – Issue

 

 

:pip installでTensorFlowをインストールできない。
 Unable to install TensorFlow with pip install.

 

 

出力結果 – Results

 

 

ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
WARNING: You are using pip version 20.2.3; however, version 21.0 is available.
You should consider upgrading via the '/Users/**/Desktop/**/**/bin/python -m pip install --upgrade pip' command.

 

【問題と解決方法例 - Issue & Example Solution】pip installでTensorFlowがインストールできない - Unable to install TensorFlow with pip install エラー

 

既にターミナルに解決方法が記載されていますね。
We already have a solution listed in the terminal.

 

 

【解決方法例 – Example Solution】

 

 

対応方法 – Method:Example Solution

:pipのバージョンをアップデートする。
 Update the version of “pip”.

pip install --upgrade pip

 

補足説明として、TensorFlowのバージョン指定をする場合は、以下のようにコードを入力します。
As a supplementary explanation, if you want to specify the version of TensorFlow, enter the code as follows.

pip install tensorflow==x.x.x

 

【問題と解決方法例 - Issue & Example Solution】pip installでTensorFlowがインストールできない - Unable to install TensorFlow with pip install 解決

 




 

確認時点ではPython3.9.1では、pip 20.2.3から21.0にアップデートしても出来ませんでした…
At the time of checking, Python 3.9.1 was not able to update from pip: 20.2.3 to 21.0…

 

 

pipの問題 – pip issues

 

 

pipの過去の問題や、最新の問題報告はpipのissuesで確認できます。
Past issues of pip and the latest issue reports can be found at pip issues.
pypa/pip:Issue tracking | GitHub

 

 

by 子供プログラマー | プログラミング入門ウェブ教室

 

【ERROR Codes】- プログラミング学習エラーコード集(一覧)

 

日本人のための人工知能プログラマー入門講座(機械学習)