如何通过 pip 在 windows-10 中为 python 安装 vtk?

How to install vtk for python in windows-10 via pip?

我尝试通过 pip 安装 vtk 作为 "pip install vtk" 但它返回如下错误。

错误:

Could not find a version that satisfies the requirement vtk (from versions: none)

错误:

No matching distribution found for vtk"

如何解决?

vtk 8.1.2 仅提供 64 位版本,不提供源代码。您的 Python 是 32 位的。要安装 vtk,您需要升级到 64 位 Python。