-
Notifications
You must be signed in to change notification settings - Fork 286
Running InVesalius 3 in Windows
- Python3 (We are using the version 3.7).
- Visual Studio (We are using the 2017 community edition).
- Download InVesalius source code.
Install WXPython, numpy, scipy, scikit-image, H5Py, Pillow, Pyserial, PSUtil, nibabel and configparser using pip:
pip install wxpython numpy scipy scikit-image h5py pillow pyserial psutil nibabel configparser
It's also needed to install VTK and GDCM. It's possible to install the wheel files we are providing, but they will only work with Python3.7 to Windows 10 64 bits. If you are using other version of Python and/or Windows, you will need to compile VTK and GDCM by yourself. The link to download the wheel files are:
After downloading the wheel file, using command line enter in the folder with the wheel files and install them using pip:
pip install gdcm-2.8.8-cp37-cp37m-win_amd64.whl
pip install vtk-8.1.2-cp37-cp37m-win_amd64.whl
Some algorithms of InVesalius are written in Cython for performance. It's needed to compile them. First, you need to install cython:
pip install cython
Open the command prompt of you Visual Studio and go to the InVesalius source, then compile using this command:
python setup.py build_ext --inplace
Inside InVesalius source code run python app.py
to run InVesalius.