[vtkusers] Unable to run vtk 7.1.1 with spyder

Joseph Bendahan joseph.bendahan at gmail.com
Thu Feb 1 20:24:13 EST 2018


I am working in Windows 7 64-bit machine.

I am using Spyder 2.3.5.2 that uses Python 2.7.10 64bits

I installed vtkpython-7.1.1-Windows-64bits



I added this to the PATH  C:\Program Files\VTK 7.1.1\bin (checked that it I
in the path), and added

PYTHONPATH = C:\Program Files\VTK 7.1.1\bin\Lib\site-packages


When I typed “import vtk”, I got this
[image: Inline image 2]

Then, I found out that vtkCommonCorePython is in C:\Program Files\VTK
7.1.1\bin\Lib\site-packages\vtk

 So I changed

PYTHONPATH= C:\Program Files\VTK 7.1.1\bin\Lib\site-packages\vtk

Then got this

ImportError: No module named vtk



So I tried “Pip install vtk”

Got this

[image: Inline image 3]


Tried “conda install vtk”

Got this

Fetching package metadata .…

Solving package specifications ……

And Python.exe crashed



I ran out of ideas.

Your help would be greatly appreciated. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180201/757eeb94/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 12605 bytes
Desc: not available
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180201/757eeb94/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 40592 bytes
Desc: not available
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180201/757eeb94/attachment-0001.png>


More information about the vtkusers mailing list