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