【问题标题】:Installing TensorFlow 1.15安装 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

如何安装此特定版本?

【问题讨论】:

标签: python tensorflow tensorflow2.0


【解决方案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
      

      这个解决方案对我有用

      【讨论】:

        猜你喜欢
        • 2023-02-16
        • 2021-07-09
        • 2020-03-15
        • 1970-01-01
        • 2021-06-18
        • 2021-07-27
        • 2020-08-12
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多