【问题标题】:Could not find a version that satisfies the requirement tensorflow==1.15 even though I think I meet them?即使我认为我满足要求,也找不到满足要求 tensorflow==1.15 的版本?
【发布时间】:2021-04-21 01:36:48
【问题描述】:

我正在学习一个教程,为此我使用了 pip install tensorflow。现在我意识到多年来事情发生了变化,事情的命名也不同了,因为我收到了错误AttributeError: module 'tensorflow' has no attribute 'gfile',我听说这是因为 tensorflow 1.x 中的事情过去有所不同。现在我想尝试使用pip install tensorflow==1.15 安装 tensorflow,但我得到了错误

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, 2.2.1, 2.2.2, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.3.2, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4, 2.4.0)
ERROR: No matching distribution found for tensorflow==1.15 

我真的不知道为什么?有其他人经历过吗?

【问题讨论】:

    标签: python python-3.x tensorflow pip tensorflow2.0


    【解决方案1】:

    我猜你正在尝试使用 python 3.8,当 tensorflow 的版本为 1.15 时,它不受官方支持。

    您可以在3.53.72.7之间选择python版本,您的问题可以解决。

    您也可以在pypi 上查看下载文件,tensorflow 1.15 没有可用的 cp38 文件。

    注意:如果使用的是 32 位版本,则需要 64 位版本的 Python。

    【讨论】:

      猜你喜欢
      • 2018-07-21
      • 2022-08-05
      • 2017-07-08
      • 2018-02-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-20
      相关资源
      最近更新 更多