# How to set VTK for using Python in Windows

**URL:** https://discourse.vtk.org/t/how-to-set-vtk-for-using-python-in-windows/1786
**Category:** Support
**Created:** [September 19, 2019, 9:01am UTC](https://discourse.vtk.org/t/how-to-set-vtk-for-using-python-in-windows/1786 "2019-09-19T09:01:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Mikend994](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@Mikend994](https://discourse.vtk.org/u/Mikend994)
#### Post date: [September 19, 2019, 9:01am UTC](https://discourse.vtk.org/t/how-to-set-vtk-for-using-python-in-windows/1786/1 "2019-09-19T09:01:22Z")

</div>

Hi to everyone! I’m really new in using VTK. I have installed it with VisualStudio as generator on windows, following this tutorial “[https://www.youtube.com/watch?v=6S3\_sl5Sc0E](https://www.youtube.com/watch?v=6S3_sl5Sc0E)”. Now I’m able to work with that using C++, but I would like to use Python because it’s easier for me.

I have installed the python extension on Visual studio. When I open a new python project, importing a VTK python example and running it, I obtain the error “No module named vtk”.

Instead, if I open a .sln file obtained from cmake(with C++) and compiling with VisualStudio, I obtain the .exe file that I run from prompt and works.

Is there any step for connecting python(in VisualStudio) to VTK that I haven’t done yet? Could you explain me step by step please?
