# vtk python packages

**URL:** https://discourse.vtk.org/t/vtk-python-packages/4418
**Category:** Support
**Created:** [October 14, 2020, 9:23pm UTC](https://discourse.vtk.org/t/vtk-python-packages/4418 "2020-10-14T21:23:49Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Charalambos\_Greg](https://discourse.vtk.org/user_avatar/discourse.vtk.org/charalambos_greg/32/2452_2.png) [@Charalambos\_Greg](https://discourse.vtk.org/u/Charalambos_Greg)
#### Post date: [October 14, 2020, 9:23pm UTC](https://discourse.vtk.org/t/vtk-python-packages/4418/1 "2020-10-14T21:23:49Z")

</div>

I have been trying to install python packages for vtk and its modules on windows for several days now and it seems that I am getting something wrong. I install python 3.9 and when i try to install vtk by typing pip install vtk I get an error! But when I install python 3.8 and i download the vtk python wheels it installs it without problem but still whe I try to run a code the vtk modules do not exist. Is like the vtk package does not have any modules in it. What do i do?? What version o python should I install and what to to next?? I am kind of new at this and i really need vtk to do me thesis. thanks in advance

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [October 15, 2020, 1:47pm UTC](https://discourse.vtk.org/t/vtk-python-packages/4418/2 "2020-10-15T13:47:20Z")

</div>

We have not made 3.9 wheels for VTK yet. 3.8 should work though. Are you sure you’re using 64bit Python? We do not provide 32bit wheels.

---

<div class="post-metadata">

### Author: ![Charalambos\_Greg](https://discourse.vtk.org/user_avatar/discourse.vtk.org/charalambos_greg/32/2452_2.png) [@Charalambos\_Greg](https://discourse.vtk.org/u/Charalambos_Greg)
#### Post date: [October 15, 2020, 2:00pm UTC](https://discourse.vtk.org/t/vtk-python-packages/4418/3 "2020-10-15T14:00:10Z")

</div>

Thank you very much for replying! yes for 3.8 64bit the package is being installed. But when i download an example from the example page the package does not recognise the module that the example uses

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [October 15, 2020, 2:13pm UTC](https://discourse.vtk.org/t/vtk-python-packages/4418/4 "2020-10-15T14:13:34Z")

</div>

Hmm. Could you paste the code you’re trying and the error message? Does `import vtk` work? How about `from vtkmodules import vtkCommonCore`?

---

<div class="post-metadata">

### Author: ![Charalambos\_Greg](https://discourse.vtk.org/user_avatar/discourse.vtk.org/charalambos_greg/32/2452_2.png) [@Charalambos\_Greg](https://discourse.vtk.org/u/Charalambos_Greg)
#### Post date: [October 15, 2020, 2:51pm UTC](https://discourse.vtk.org/t/vtk-python-packages/4418/5 "2020-10-15T14:51:27Z")

</div>

![Capture](https://discourse.vtk.org/uploads/default/original/2X/8/8b257f2eb8ed64c152832c9f2085130d5839f21c.png)

Looks like the imports work fine but the vtk.vtkNamedColors() do not work.  
and the other modules also as yous see on the right bar the minimized code.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [October 15, 2020, 4:05pm UTC](https://discourse.vtk.org/t/vtk-python-packages/4418/6 "2020-10-15T16:05:38Z")

</div>

Can you try to import the modules I gave in a REPL and show the error messages there? These error messages are not very helpful (3.9 did improve some of them though; not sure if this is one of them).

---

<div class="post-metadata">

### Author: ![Charalambos\_Greg](https://discourse.vtk.org/user_avatar/discourse.vtk.org/charalambos_greg/32/2452_2.png) [@Charalambos\_Greg](https://discourse.vtk.org/u/Charalambos_Greg)
#### Post date: [October 15, 2020, 5:05pm UTC](https://discourse.vtk.org/t/vtk-python-packages/4418/7 "2020-10-15T17:05:07Z")

</div>

importing what you told me before is not giving me any errors.

---

<div class="post-metadata">

### Author: ![Charalambos\_Greg](https://discourse.vtk.org/user_avatar/discourse.vtk.org/charalambos_greg/32/2452_2.png) [@Charalambos\_Greg](https://discourse.vtk.org/u/Charalambos_Greg)
#### Post date: [October 15, 2020, 5:06pm UTC](https://discourse.vtk.org/t/vtk-python-packages/4418/8 "2020-10-15T17:06:00Z")

</div>

do i need to build vtk also with the cmake?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [October 15, 2020, 9:46pm UTC](https://discourse.vtk.org/t/vtk-python-packages/4418/9 "2020-10-15T21:46:06Z")

</div>

If importing is working, something else is going wrong. You’ll need to use some debugging tools to determine what “the path specified” is. [Process Monitor](https://docs.microsoft.com/en-us/sysinternals/downloads/procmon) should be able to help.

---

<div class="post-metadata">

### Author: ![Charalambos\_Greg](https://discourse.vtk.org/user_avatar/discourse.vtk.org/charalambos_greg/32/2452_2.png) [@Charalambos\_Greg](https://discourse.vtk.org/u/Charalambos_Greg)
#### Post date: [October 15, 2020, 9:53pm UTC](https://discourse.vtk.org/t/vtk-python-packages/4418/10 "2020-10-15T21:53:37Z")

</div>

Is there a link that shows all the modules of vtk??

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [October 16, 2020, 11:22am UTC](https://discourse.vtk.org/t/vtk-python-packages/4418/11 "2020-10-16T11:22:51Z")

</div>

`import vtk` ends up importing every VTK Python module (which is why the `vtkmodules` package exists).

---

<div class="post-metadata">

### Author: ![Charalambos\_Greg](https://discourse.vtk.org/user_avatar/discourse.vtk.org/charalambos_greg/32/2452_2.png) [@Charalambos\_Greg](https://discourse.vtk.org/u/Charalambos_Greg)
#### Post date: [October 16, 2020, 11:55am UTC](https://discourse.vtk.org/t/vtk-python-packages/4418/12 "2020-10-16T11:55:30Z")

</div>

Thank you very much. I appreciate it
