Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VTK / Python / compile

I want to use VTK together with Python on a Windows system.

It seems that I cannot use the windows installer but "have to compile VTK from source code using CMake and a native build system". So far I have installed CMake.

But now I wonder how to proceed? It seems that I need MS Visual Studio to create the project files?!

But I don't have Visual Studio. So what can I do?

like image 551
3Dimage Avatar asked Aug 17 '11 08:08

3Dimage


3 Answers

There is a VTK installer here:

http://www.lfd.uci.edu/~gohlke/pythonlibs/

It appears to work fine for me and it beats compiling it.

like image 121
Matt Clarke Avatar answered Nov 19 '22 20:11

Matt Clarke


You can use VTK with python just installing pythonxy framework, it is just a python with many many libraries included VTK, ITK, Qt and many other, also it is very well documented, and also have many examples, all in python. I recommend it to you, I have worked a lot with it, and is very amazing. Just make a try. All you have to do is in the installer wizard select among the tools, VTK, and it will be installed with vtk.

like image 1
KronuZ Avatar answered Nov 19 '22 20:11

KronuZ


It wasn't the case when you asked this question, but since version 6.1, vtk-python ships with a Windows (linux and osx) installer. See their download page for more information.

like image 1
Nil Avatar answered Nov 19 '22 21:11

Nil