Where to find old vtk for Python?

Hi all,

vtk PyPI only has versions >8.0.0. Is there a place where I can get vtk==7.1? I tried pip install vtk==7.1 only to run in to:

Collecting vtk==7.1
  ERROR: Could not find a version that satisfies the requirement vtk==7.1 (from versions: 8.1.0, 8.1.1, 8.1.2)
ERROR: No matching distribution found for vtk==7.1

There are no official pip installable packages for VTK < 8, but you can compile the python bindings from the available source code.

Okay, can you please point me to the instruction? I don’t see any setup.py or instruction so it is not apparent to me immediately how to.

Okay found something https://vtk.org/Wiki/VTK/Configure_and_Build

But how do I make a Python package out of it?

Ping @TJ_Corona … and all other developers.

My impression is that it will be a nontrivial amount of work to construct a pip-installable package for VTK 7. You can start by looking at how it was performed for VTK 8 and VTK 9. Alternatively, you may want to consider moving to VTK 9.

1 Like