[vtkusers] Can't get vtk modules to work in python - visual studio
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:
> 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
> 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
> folder into solution explorer but it didn't help. Please help how to add
> 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:
> Sent from the VTK - Users mailing list archive at Nabble.com.
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers