VTKPython for 9.0


I am a new VTK user.

So far I have downloaded VTK9.0 and build it with no issues. Now I am looking for VTKPython for Windows. How should I get it for 9.0?

The python wheels have not worked for me. What is the meaning of cp35, cp36, etc?

Thanks in advance,


Hello Francesc,

The python wheels have not worked for me. What is the meaning of cp35, cp36, etc?

cp35 is for python 3.5 and cp36 for python 3.6

What do you mean the python wheels have not worked ? Have you also tried pip install ?

Be careful to use python 64 bits on windows as VTK only support the 64 bit version (and the python download page tend to make you download the 32b version by default…)

Thanks Charles,

As you suggested, the issue I had with the wheel was because I had Python 32 bits installed. I managed to install vtk-9.0.1-cp38-cp38-win_amd64.whl wheel successfully now.

What does vtk-9.0.1-cp38-cp38-win_amd64.whl offer me? Do you have a user guide or tutorial?

How can I execute vtkPython as mentioned in this course https://vimeo.com/32232190 ?



You may find a lot of examples (in python) here : https://vtk.org/Wiki/VTK/Examples/Python

Also, vtkpython is especially useful for people that compile VTK with Python binding as it launch python so that it can find the vtk module (i.e setup the right PYTHON_PATH ).
In your case, vtk is already installed so your python interpreter will find it. Just import vtk and you should be able to follow the tutorial :slight_smile:

1 Like

A better source of examples is here where you can see the latest and greatest: https://ajpmaclean.github.io/web-test/site/, I am working on the new site and this is the web version here so it is being updated on a daily basis. The future site will be anounced here when I have finished the majority of updates/improvements. Probably in a few weeks.

The original site is here: https://lorensen.github.io/VTKExamples/site/, however is is no longer being maintained.

1 Like