[vtkusers] using VTK 5.6 through Python 2.6 on windows

Jothy jothybasu at gmail.com
Tue Nov 2 06:04:41 EDT 2010


The easiest way is to install Pythonx,y, it comes with tens of usefull
libraries including itk and vtk.

Give it a try http://www.pythonxy.com/

Jothy

On Tue, Nov 2, 2010 at 2:05 AM, Prathamesh Kulkarni <
prathameshmkulkarni at gmail.com> wrote:

> 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
>
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101102/f934c7ed/attachment.htm>


More information about the vtkusers mailing list