# Installing itk-vtkglue module using Pip

**URL:** <https://discourse.itk.org/t/installing-itk-vtkglue-module-using-pip/1418>\
**Category:** Beginner Questions\
**Created:** [November 15, 2018, 9:26pm UTC](https://discourse.itk.org/t/installing-itk-vtkglue-module-using-pip/1418 "2018-11-15T21:26:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruurdk](https://discourse.itk.org/letter_avatar_proxy/v4/letter/r/e68b1a/32.png) [@Ruurdk](https://discourse.itk.org/u/Ruurdk)\
**Post date:** [November 15, 2018, 9:26pm UTC](https://discourse.itk.org/t/installing-itk-vtkglue-module-using-pip/1418/1 "2018-11-15T21:26:44Z")

</div>

Hi all,

I am trying to install the itk-vtkglue module using pip, as I would like to use the transform inverse functions from vtk on some .nrrd data. However, when I use “python -m pip install itk-vtkglue” I get the following error message:

Could not find a version that satisfies the requirement itk-vtkglue (from versions: )

No matching distribution found for itk-vtkglue

I would much prefer it to use pip to install the module instead of going through CMake etc. Is this possible?

Thanks in advance,

RK

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [November 15, 2018, 10:16pm UTC](https://discourse.itk.org/t/installing-itk-vtkglue-module-using-pip/1418/2 "2018-11-15T22:16:17Z")

</div>

Hi RK,

We are currently expanding the currently supported distributions. What is your Python version and operating system?

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![Ruurdk](https://discourse.itk.org/letter_avatar_proxy/v4/letter/r/e68b1a/32.png) [@Ruurdk](https://discourse.itk.org/u/Ruurdk)\
**Post date:** [November 15, 2018, 10:20pm UTC](https://discourse.itk.org/t/installing-itk-vtkglue-module-using-pip/1418/3 "2018-11-15T22:20:53Z")

</div>

Hi Matt,

Thank you for your quick reply. I am working on Windows 7 and using python 3.6.3.

I encountered the same issue on Mac OS X Mojave 10.14

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [November 17, 2018, 3:24pm UTC](https://discourse.itk.org/t/installing-itk-vtkglue-module-using-pip/1418/4 "2018-11-17T15:24:24Z")

</div>

Windows wheels have been uploaded to PyPI for Python 3.6 🎇 . Please try

```auto
python -m pip install itk-vtkglue

```

---

<div class="post-metadata">

**Author:** ![Ruurdk](https://discourse.itk.org/letter_avatar_proxy/v4/letter/r/e68b1a/32.png) [@Ruurdk](https://discourse.itk.org/u/Ruurdk)\
**Post date:** [November 19, 2018, 9:59am UTC](https://discourse.itk.org/t/installing-itk-vtkglue-module-using-pip/1418/5 "2018-11-19T09:59:26Z")

</div>

Hi Matt,

Thank you so much for uploading the windows wheel, which is amazing!

Extra question if you don’t mind: I started rewriting the vtkWarpTransform method vtkWarpInverseTransformPoint for Matlab, but couldn’t quite find how TemplateTransformPoint(inverse,deltaP,derivative) (line 145) worked. The input for this function is a point (inverse) and the displacement vector at that point, the output the displaced point (deltaP) and the derivative, if I understand correctly. But how is this derivative calculated? I hope you don’t mind me rewriting it to Matlab, I will of course cite the VTK.

Thanks for your amazing work!

RK

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [November 19, 2018, 3:42pm UTC](https://discourse.itk.org/t/installing-itk-vtkglue-module-using-pip/1418/6 "2018-11-19T15:42:41Z")

</div>

`vtkWarpTransform` is part of VTK. If the [docs](https://www.vtk.org/doc/nightly/html/classvtkWarpTransform.html) don’t answer your question, you should ask for advice on one of [VTK mailing lists](https://www.vtk.org/mailing-lists/).

---

<div class="post-metadata">

**Author:** ![Ruurdk](https://discourse.itk.org/letter_avatar_proxy/v4/letter/r/e68b1a/32.png) [@Ruurdk](https://discourse.itk.org/u/Ruurdk)\
**Post date:** [November 19, 2018, 3:46pm UTC](https://discourse.itk.org/t/installing-itk-vtkglue-module-using-pip/1418/7 "2018-11-19T15:46:38Z")

</div>

Thank you, I will!

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [November 19, 2018, 4:29pm UTC](https://discourse.itk.org/t/installing-itk-vtkglue-module-using-pip/1418/8 "2018-11-19T16:29:39Z")

</div>

Note that there are similar classes in ITK:

- [itk::DisplacementFieldTransform](https://itk.org/Doxygen/html/classitk_1_1DisplacementFieldTransform.html)
- [itk::IterativeDisplacementFieldImageFiltert](https://itk.org/Doxygen/html/classitk_1_1IterativeInverseDisplacementFieldImageFilter.html)
- [itk::InverseDisplacementFieldImageFilter](https://itk.org/Doxygen/html/classitk_1_1InverseDisplacementFieldImageFilter.html)

Studying these classes and re-implementing their functionality in Matlab is a good exercise to understand the operation. And, it will help build an appreciation of why ITK’s computations in physical space, which are difficult in Matlab, and ITK’s performance make it preferable over Matlab ;-).
