Mac OS 安裝 TensorFlow 出現如題錯誤。
Collecting tensorflow==1.5
Could not find a version that satisfies the requirement tensorflow==1.5 (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 2.0.0a0)
No matching distribution found for tensorflow==1.5
先檢查兩個:
1、Python 版本是否是 3.7.x ,目前 TensorFlow 不支持 python 3.7,如果是需要降級,至於如何降級 Python 將我的另外一篇博客《Python 降級到3.6版本的解決方案(Mac OS)》。
2、如果 Python 已經是 3.6 還出現該錯誤,則使用如下命令安裝:
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.5.0-py3-none-any.whl
具體見:https://blog.csdn.net/u011520181/article/details/89200891
參考:
https://stackoverflow.com/questions/48720833/could-not-find-a-version-that-satisfies-the-requirement-tensorflow
https://www.tensorflow.org/install/pip