安装 TensorFlow 1.15
Posted
技术标签:
【中文标题】安装 TensorFlow 1.15【英文标题】:Installing TensorFlow 1.15 【发布时间】:2020-10-12 15:13:32 【问题描述】:我一直在尝试安装 TensorFlow 版本 1,但它似乎不再存在。 我的项目需要 TensorFlow v1,无法使用 v2
pip install tensorflow==1.15
返回
ERROR: Could not find a version that satisfies the requirement tensorflow==1.15 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3,
2.2.0rc4, 2.2.0) ERROR: No matching distribution found for tensorflow==1.15
如何安装此特定版本?
【问题讨论】:
请查看这个***.com/questions/48720833/… 您可能需要python3,并且可能正在使用python2 【参考方案1】:根据this tensorflow github issue 新版本的python 不支持旧版本的tensorflow。具有 tensorflow 1.15 的 python 的最大版本是 3.7
【讨论】:
【参考方案2】:将 pip 升级到最新版本 (19.0.1) 适合我的情况。
python -m pip install --upgrade pip
【讨论】:
【参考方案3】:pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.5.0-py3-none-any.whl
这个解决方案对我有用
【讨论】:
以上是关于安装 TensorFlow 1.15的主要内容,如果未能解决你的问题,请参考以下文章
Anaconda 安装 TensorFlow 1.15 而不是 2.0
将 tensorflow-serving-api 1.15 版安装到 Centos 8