[vtkusers] Can't get vtk modules to work in python - visual studio

Shawn Waldon shawn.waldon at kitware.com
Tue Jul 28 09:55:03 EDT 2015

I've had to figure this out before... here is what I remember:  First you
should make sure that the vtk binaries you installed were built with
python.  Then you need to add the VTK_INSTALL/lib and
VTK_INSTALL/lib/PythonX/site-packages (replace X with python version,
probably 2.7) folders to both your PATH and your PYTHONPATH environment
variables. Then you should be able to import vtk.


On Tue, Jul 28, 2015 at 1:47 AM, roobaru <chpradeep.ith at gmail.com> wrote:

> Hello,
> I am very new to python and vtk. I got a vtk windows installer and used the
> noob-friendly method to install it. I can see the VTK 6.2.0 folder in the
> program files. I also added the bin folder to system path with the hope
> that
> I can simply import vtk in python. I installed python in visual studio and
> when I use import vtk I get the error "No module named vtk". I added the
> bin
> folder into solution explorer but it didn't help. Please help how to add
> the
> vtk libraries to my existing python. I tried to search the forums, but
> couldn't find anything helpful. Sorry for the noob question.
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Can-t-get-vtk-modules-to-work-in-python-visual-studio-tp5733141.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150728/b508f84c/attachment.html>

More information about the vtkusers mailing list