[vtkusers] Install VTK + Python
Vladimir Lazunin
lazunin.v.aa at m.titech.ac.jp
Mon Apr 16 07:00:05 EDT 2007
As far as I remember, there are no Python modules in the pre-build installation packages for Windows. I don't remember that clearly, though, sorry for not willing to check :)
Anyway, assuming your Python is installed in C:\Python25, check the C:\Python25\lib\site-packages, it must contain a subfolder called "vtk", after you install the wrapper. If it does, but "import vtk" still fails, check inside that "vtk" subfolder if there are dll-s there (vtkCommonPython.dll etc.) If there are, try renaming them all manually to *.pyd (e. g. vtkSomethingSomething.dll -> vtkSomethingSomething.pyd). Since 2.5 Python doesn't recognize *.dll files as it's modules, requiring *.pyd-s instead.
As for PYTHONPATH environment variable - it's not necessary. All you are really need for it to work are:
- vtk dll-s in a folder somewhere on your system (including vtk*Python.dll and vtk*PythonD.dll-s);
- PATH must include that folder;
- Appropriate "vtk" folder in your "site-packages".
When I need to install Python wrapper on another machine, I just copy those in there, that's enough.
Good luck.
Vladimir.
Hello,
I am download from http://www.vtk.org/files/release/5.0/vtk-5.0.3-win32.exe and installed to use with Python 2.5, but as I make to relate the VTK with the Python??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070416/1aa126cf/attachment.htm>
More information about the vtkusers
mailing list