<div dir="ltr"><div><div><div>Hi Vikash,<br><br></div>You are right, vtkpython is a python interpreter that sets up the environment so that the VTK modules are found.  You can use the VTK modules from another python interpreter as long as it is the same version of python they were compiled against (2.7 in most cases, including the binaries on the download page).  You have to set the PYTHONPATH environment variable to point to the vtk python modules and the PATH/LD_LIBRARY_PATH/DYLD_LIBRARY_PATH environment variable to point to the vtk C++ libraries that those python modules load.  For example, on Linux with vtk installed to /usr/local you would need:<br><br>export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/python2.7/site-packages/vtk:$LD_LIBRARY_<span class="">PATH</span><br><br>export <span class="">PYTHONPATH</span>=/usr/local/lib/python2.7/site-packages:$<span class="">PYTHONPATH</span><br><br></div><div>The paths are slightly different for each OS, so just ask the list if you have trouble figuring it out and someone with your OS should be able to help.<br></div><div><br></div>HTH,<br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 27, 2016 at 7:15 PM, Vikash Gupta <span dir="ltr"><<a href="mailto:Vikash.Gupta@loni.usc.edu" target="_blank">Vikash.Gupta@loni.usc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:#000000;margin:0">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:#000000;margin:0">
Hi everyone, </div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:#000000;margin:0">
This might be a solved problem but I was not able to find a solution that worked for me. So, if someone can help me out it will be really great. </div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:#000000;margin:0">
<br>
</div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:#000000;margin:0">
I am trying to use vtkpython. I cannot install it using pip. So, I found the binary packages for python on the vtk website. The vtkPython executable seems like a python interpreter. </div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:#000000;margin:0">
Is there a way I could use the classical Python 2.7 interpreter and still use the vtk modules. The reason, I am more inclined to use my old interpreter because I can use pip for installing packages. </div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:#000000;margin:0">
<br>
</div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:#000000;margin:0">
Any help ??</div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:#000000;margin:0">
<br>
</div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:#000000;margin:0">
Thanks </div><span class="HOEnZb"><font color="#888888">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:#000000;margin:0">
Vikash</div>
</font></span></div>
</div>

<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>
<br></blockquote></div><br></div>