[vtkusers] Install VTK + Python
Francois Louis LAILLIER
flaillier at eldim.fr
Mon Apr 16 08:12:35 EDT 2007
Hello to install this librairy unzip it, copy it after that, go in its
directory and execute this in msDos. python setup.py install
________________________________
From: vtkusers-bounces+flaillier=eldim.fr at vtk.org
[mailto:vtkusers-bounces+flaillier=eldim.fr at vtk.org] On Behalf Of
Vladimir Lazunin
Sent: lundi 16 avril 2007 13:00
To: vtkusers at vtk.org
Subject: Re: [vtkusers] Install VTK + Python
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??
<https://mail2.nap.gsic.titech.ac.jp/cgi-bin/setconfirm.cgi?k=1176721192
490981254&u=lazunin.v.aa&d=m.titech.ac.jp>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070416/68d307f5/attachment.htm>
More information about the vtkusers
mailing list