[vtkusers] using VTK 5.6 through Python 2.6 on windows

Prathamesh Kulkarni prathameshmkulkarni at gmail.com
Mon Nov 1 22:05:04 EDT 2010


Hello all,

I want to be able to use VTK in Python. I have installed VTK with
BUILD_SHARD_LIBS and WRAP_PYTHON. Then I build VTK in debug mode.
I get a lot of files in C:\VTK\VTK_BIN_DIR\Wrapping\Python. I tried to do
many things with this:

1. Create a new environment variable called PYTHONPATH and add the above
path there
2. copy everything in that path to a new directory called VTK inside
site_packages

None of this seems to work and I cannot do a 'import vtk'. I keep getting
the error: 'ImportError: No module named VTK'

Please point me out to a formal way of helping python 'see' vtk

Thanks,
Prathamesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101101/507b4892/attachment.htm>


More information about the vtkusers mailing list