【问题标题】:ERROR: No matching distribution found for ipython==7.17.0错误:没有为 ipython==7.17.0 找到匹配的分布
【发布时间】:2020-12-15 14:09:25
【问题描述】:

我将一个 Python 应用程序上传到 Heroku。在我的requirements.txt 文件中,我有一行ipython==7.17.0,但Heroku 似乎无法检索它,我不明白为什么会发生这种情况,因为我可以在我的机器上下载ipython 版本。

抛出的完整错误是:

ERROR: Could not find a version that satisfies the requirement ipython==7.17.0 (from -r /tmp/build_76afe907/requirements.txt (line 32)) (from versions: 0.10, 0.10.1, 0.10.2, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.13.2, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 4.0.0b1, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.1.0rc1, 4.1.0rc2, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 5.0.0b1, 5.0.0b2, 5.0.0b3, 5.0.0b4, 5.0.0rc1, 5.0.0, 5.1.0, 5.2.0, 5.2.1, 5.2.2, 5.3.0, 5.4.0, 5.4.1, 5.5.0, 5.6.0, 5.7.0, 5.8.0, 5.9.0, 5.10.0, 6.0.0rc1, 6.0.0, 6.1.0, 6.2.0, 6.2.1, 6.3.0, 6.3.1, 6.4.0, 6.5.0, 7.0.0b1, 7.0.0rc1, 7.0.0, 7.0.1, 7.1.0, 7.1.1, 7.2.0, 7.3.0, 7.4.0, 7.5.0, 7.6.0, 7.6.1, 7.7.0, 7.8.0, 7.9.0, 7.10.0, 7.10.1, 7.10.2, 7.11.0, 7.11.1, 7.12.0, 7.13.0, 7.14.0, 7.15.0, 7.16.0, 7.16.1)        
ERROR: No matching distribution found for ipython==7.17.0 (from -r /tmp/build_76afe907/requirements.txt (line 32))

【问题讨论】:

  • 似乎无法检索它”过于宽泛。我们能看到错误信息的全文吗?
  • @phd,这几乎就是标题所说的,但我已经用完整的输出更新了描述。

标签: python heroku pip ipython


【解决方案1】:

最后一个允许的版本是7.16.1,这意味着你使用的是 Python 3.6。

7.17 需要 Python 3.7+。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-11-18
    • 2017-05-05
    • 2020-12-09
    • 2021-03-12
    • 1970-01-01
    • 2021-07-20
    • 2020-09-16
    • 2020-10-21
    相关资源
    最近更新 更多