# VTK 9.1: How to specify install dir for python modules?

**URL:** https://discourse.vtk.org/t/vtk-9-1-how-to-specify-install-dir-for-python-modules/9155
**Category:** Support
**Created:** [August 16, 2022, 1:57pm UTC](https://discourse.vtk.org/t/vtk-9-1-how-to-specify-install-dir-for-python-modules/9155 "2022-08-16T13:57:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sophonet](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/ecccb3/32.png) [@Sophonet](https://discourse.vtk.org/u/Sophonet)
#### Post date: [August 16, 2022, 1:57pm UTC](https://discourse.vtk.org/t/vtk-9-1-how-to-specify-install-dir-for-python-modules/9155/1 "2022-08-16T13:57:42Z")

</div>

Hi, currently, on Windows, python modules are installed in ${CMAKE\_INSTALL\_PREFIX}/bin/Lib/site-packages, which is not common. I would like to have them installed in ${CMAKE\_INSTALL\_PREFIX}/lib/site-packages but have not found a way to set this. Any hints?

Thanks, sophonet

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [August 16, 2022, 3:25pm UTC](https://discourse.vtk.org/t/vtk-9-1-how-to-specify-install-dir-for-python-modules/9155/2 "2022-08-16T15:25:40Z")

</div>

Experiment with different values of `VTK_PYTHON_SITE_PACKAGES_SUFFIX`. I’m not sure if it will give you exactly what you need, but it’s the best place to start.

---

<div class="post-metadata">

### Author: ![Sophonet](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/ecccb3/32.png) [@Sophonet](https://discourse.vtk.org/u/Sophonet)
#### Post date: [August 16, 2022, 4:38pm UTC](https://discourse.vtk.org/t/vtk-9-1-how-to-specify-install-dir-for-python-modules/9155/3 "2022-08-16T16:38:43Z")

</div>

Thanks, David, indeed this was the solution. I was a bit hesitant first, since I think it is rather a package prefix than a suffix, and when starting with an absolute path starting with the content of CMAKE\_INSTALL\_PREFIX I have received an error message that did not make sense, but eventually VTK\_PYTHON\_SITE\_PACKAGES\_SUFFIX="lib/site-packages"did the trick.
