ImportError: No module named vtkCommonPython

前端 未结 8 971
不思量自难忘°
不思量自难忘° 2020-12-06 09:34

I am trying to install Python with VTK on my computer, but when I want to import VTK, I get an error:

import vtk 
Traceback (most recent call last): 
 File          


        
8条回答
  •  攒了一身酷
    2020-12-06 10:40

    You need to add the folder of vtkCommonPython.pyd also to the system path (like if it was a dll). See also http://www.vtk.org/Wiki/VTK/Tutorials/PythonEnvironmentSetup

提交回复
热议问题