【问题标题】:Pip cannot find a specific version of VTK package although it is in PyPI尽管 Pip 在 PyPI 中,但 Pip 找不到特定版本的 VTK 包
【发布时间】:2020-09-20 20:43:15
【问题描述】:

我不小心安装了 VTK 9.0.0,但想降级到 8.1.2。

我使用 pip uninstall 卸载了 VTK 9.0.0,但现在由于奇怪的未知原因无法安装 8.1.2:

$ pip install "vtk==8.1"
ERROR: Could not find a version that satisfies the requirement vtk==8.1 (from versions: 9.0.0)
ERROR: No matching distribution found for vtk==8.1

8.1 版肯定在 PyPI 中。为什么pip投诉而没有必要的操作?

【问题讨论】:

  • 正在使用哪个操作系统和 Python 版本?通过发出命令pip install "vtk==8.1" 意味着安装vtk==8.1.0,并且由于缺少源版本,车轮仅适用于特定的OS 平台和Python 版本,包括2.7 和3.4 到3.6。如果使用 Python 3.7,则该版本没有可用的预构建轮子。
  • 此外,如果你真的想降级到8.1.2,你需要发出命令pip install "vtk==8.1.2"来代替;该版本具有 Python 3.7 的预构建轮子。
  • 谢谢!问题在于使用 Python 3.8。问题是 pip 错误消息和 PyPI 网页都不能很容易地看出该包与 Python 3.8 不兼容。

标签: python pip installation pypi


【解决方案1】:

此答案基于@metatoaster 的评论。

在这种情况下,pip 找不到 VTK 8.1,因为包 VTK 对于版本

【讨论】:

    猜你喜欢
    • 2020-04-21
    • 2021-01-30
    • 2011-06-04
    • 1970-01-01
    • 2022-11-28
    • 2015-05-27
    • 2014-02-27
    • 2015-12-06
    • 1970-01-01
    相关资源
    最近更新 更多