<div dir="ltr"><div><div>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.<br><br></div>HTH,<br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 28, 2015 at 1:47 AM, roobaru <span dir="ltr"><<a href="mailto:chpradeep.ith@gmail.com" target="_blank">chpradeep.ith@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I am very new to python and vtk. I got a vtk windows installer and used the<br>
noob-friendly method to install it. I can see the VTK 6.2.0 folder in the<br>
program files. I also added the bin folder to system path with the hope that<br>
I can simply import vtk in python. I installed python in visual studio and<br>
when I use import vtk I get the error "No module named vtk". I added the bin<br>
folder into solution explorer but it didn't help. Please help how to add the<br>
vtk libraries to my existing python. I tried to search the forums, but<br>
couldn't find anything helpful. Sorry for the noob question.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Can-t-get-vtk-modules-to-work-in-python-visual-studio-tp5733141.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/Can-t-get-vtk-modules-to-work-in-python-visual-studio-tp5733141.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>