【问题标题】:How to install version of tensorflow that isn't available through pip如何安装无法通过 pip 获得的 tensorflow 版本
【发布时间】:2020-09-27 21:34:59
【问题描述】:

我正在尝试安装特定版本的 tensorflow,作为我尝试使用的某些代码的要求的一部分 (https://github.com/serengil/deepface)

当我尝试像往常一样在命令提示符下安装它时,我得到以下信息。

C:\Windows\system32>pip install tensorflow==1.9.0
ERROR: Could not find a version that satisfies the requirement tensorflow==1.9.0 (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0rc3, 1.15.0, 1.15.2, 1.15.3, 1.15.4, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0rc0, 2.1.0rc1, 2.1.0rc2, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc0, 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1)
ERROR: No matching distribution found for tensorflow==1.9.0

我参考了一些其他 Stackoverflow 问题 (Installing Tensorflow 1.9 in Windows),但未能找到解决方案或如何获取所需版本。

【问题讨论】:

    标签: python tensorflow pip


    【解决方案1】:

    tensorflow==1.9.0 在 PyPI (link) 上可用。您的问题是您可能使用的是 Python 3.7,1.9.0 不支持,只有 Python 2.7 和 3.3 到 3.6。安装 64 位 Python 3.6 并使用它而不是 3.7。

    【讨论】:

      猜你喜欢
      • 2020-08-12
      • 1970-01-01
      • 1970-01-01
      • 2019-09-16
      • 1970-01-01
      • 1970-01-01
      • 2020-10-03
      • 2021-12-21
      • 1970-01-01
      相关资源
      最近更新 更多