[vtkusers] python 2.7 and vtk
Vikash Gupta
Vikash.Gupta at loni.usc.edu
Thu Jan 28 14:55:02 EST 2016
Hi Tom,
I tried few things too but they dont seem to work.. so I am thinking if there is a work around
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.
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
Thanks for all the help
Vikash
________________________________
From: Tom Parker <tomparker at personaltelemetry.com>
Sent: Thursday, January 28, 2016 8:26 AM
To: Vikash Gupta; vtkusers at vtk.org
Subject: RE: python 2.7 and vtk
Vikash,
I am working on the same issue.
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.
These are the environment variables I edited for VTK Python 2.7 on Windows.
PATH
C:\Python27\
C:\Python27\Scripts
C:\Software\VTK-7.0.0.rc2\bin\bin\Debug
C:\Software\VTK-7.0.0.rc2\bin\lib\Debug
PYTHONPATH
C:\Python27\lib
C:\Software\VTK-7.0.0.rc2\bin\bin\Debug
C:\Software\VTK-7.0.0.rc2\bin\lib\Debug
C:\Software\VTK-7.0.0.rc2\bin\Wrapping\Python
C:\Software\VTK-7.0.0.rc2\bin\Wrapping\Python\vtk
Now I can run python.exe and successfully import vtk and run most python examples without error.
From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Vikash Gupta
Sent: Wednesday, January 27, 2016 6:16 PM
To: vtkusers at vtk.org
Subject: [vtkusers] python 2.7 and vtk
Hi everyone,
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.
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.
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.
Any help ??
Thanks
Vikash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160128/5533b75c/attachment.html>
More information about the vtkusers
mailing list