1)安装Python,(此处省略)
2)安装VTK,从网站http://www.vtk.org/VTK/resources/software.html 下载最新版本,此文安装的是:vtkpython-6.1.0-Windows-64bit.exe
3)配置VTK环境变量:
A:把VTK中的bin文件加入系统变量中:如:PATH:C:\Program Files\VTK 6.1.0\bin
B:设置python路径,在系统变量中创建PYTHONPATH :如:PYTHONPATH :C:\Program Files\VTK 6.1.0\bin;C:\Program Files\VTK 6.1.0\bin\Lib\site-packages
4)测试,打开python IDEL界面,输入:import vtk
>>> import vtk
>>>
没报错,就说明安装成功了。
Reference:
1)http://cpbotha.net/2008/09/23/python-25-enabled-vtk-52-windows-binaries/
2)http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/