Has managed me so to get in touch =) Okay. After searching, I found a good page .
1. Install CMake. Download and put
2. Downloading and unpacking VTK
3. Installation QT for example in C: / Qt
4. Installation Visual Studio
5. Configuration of VTK with CMake
This is iterative process – select some, click Configure, again select, click, until the OK button is available.
Set the vtkWrappingPython , VTK_Group_Qt checkboxes
For Cmake_prefix_path , put something like: C: /Qt/5.11.0/msvc2015_64
For Qt5_dir : C: /Qt/5.11.0/msvc2015_64/lib/cmake/Qt5
Be prepared that the installations are not fast 🙂
Find vtkPython binary in VTK dir – it is the analogue of the python command, only with the corresponding appendage. Run it and check: `import vtk`. If no errors – congratulations! Otherwise – repeat the configuration.
For convenience, add vtkPython to PATH.
Versions of the used good (windows 10 x64):
Microsoft Visual Studio Community 2017 Version 15.7.3
Python 3.6.5 x64
Qt 5.11.0 msvc15_64
PS. This is all I needed to build spycer
Therefore I also did pip install cx_Freeze and then:
vtkpython setup.py build and got an exe.
PPS. Compare with the installation on ubuntu:
sudo apt-get install python3-pyqt5 sudo apt-get install python-pyvtk