<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" id="owaParaStyle" style="display: none;">P {margin-top:0;margin-bottom:0;}</style><style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif}
a:link, span.MsoHyperlink
{color:#0563C1;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline}
span.EmailStyle18
{font-family:"Calibri",sans-serif;
color:#1F497D}
.MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
-->
</style>
</head>
<body dir="ltr" fpstyle="1" aria-label="Message body" tabindex="0">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; color: #000000; margin: 0">
Hi Tom,
<div>I tried few things too but they dont seem to work.. so I am thinking if there is a work around </div>
<div>For example even if I use the vtkPython, it doesn't contain few packages I need. At the end f the day it will be nice to have one environment so that I can install Mayavi too. </div>
<div><br>
</div>
<div>I tried installing VTK from scratch but it runs into errors too if I enable python build. So, I am very stuck at the moment </div>
<div><br>
</div>
<div>Thanks for all the help </div>
<div><br>
</div>
<div>Vikash</div>
<div>
<div style="color: rgb(40, 40, 40);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Tom Parker <tomparker@personaltelemetry.com><br>
<b>Sent:</b> Thursday, January 28, 2016 8:26 AM<br>
<b>To:</b> Vikash Gupta; vtkusers@vtk.org<br>
<b>Subject:</b> RE: python 2.7 and vtk</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Vikash,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">I am working on the same issue.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">To share my results, I never got this completely working on my mac El Capitan, but these environment variables work for me on W10, VTK 7 and VS 2015 Community
Edition with a 64 bit build.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">These are the environment variables I edited for VTK Python 2.7 on Windows.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">PATH</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">C:\Python27\</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">C:\Python27\Scripts</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">C:\Software\VTK-7.0.0.rc2\bin\bin\Debug</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">C:\Software\VTK-7.0.0.rc2\bin\lib\Debug</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">PYTHONPATH</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">C:\Python27\lib</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">C:\Software\VTK-7.0.0.rc2\bin\bin\Debug</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">C:\Software\VTK-7.0.0.rc2\bin\lib\Debug</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">C:\Software\VTK-7.0.0.rc2\bin\Wrapping\Python</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">C:\Software\VTK-7.0.0.rc2\bin\Wrapping\Python\vtk</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Now I can run python.exe and successfully import vtk and run most python examples without error.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> vtkusers [mailto:vtkusers-bounces@vtk.org]
<b>On Behalf Of </b>Vikash Gupta<br>
<b>Sent:</b> Wednesday, January 27, 2016 6:16 PM<br>
<b>To:</b> vtkusers@vtk.org<br>
<b>Subject:</b> [vtkusers] python 2.7 and vtk</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">Hi everyone, </span></p>
</div>
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">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. </span></p>
</div>
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black"> </span></p>
</div>
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">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. </span></p>
</div>
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">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. </span></p>
</div>
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black"> </span></p>
</div>
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">Any help ??</span></p>
</div>
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black"> </span></p>
</div>
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">Thanks </span></p>
</div>
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">Vikash</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>