【发布时间】: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