我不小心安装了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中。为什么要点子抱怨,而无需进行操作?
此答案基于@metatoaster的评论。
在这种情况下,pip
找不到VTK 8.1,因为对于[9.0以下的版本,包VTK
不适用于Python 3.8,而我使用的是Python 3.8。