ImportError: No module named vtkCommonPython

前端 未结 8 980
不思量自难忘°
不思量自难忘° 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:32

    In windows,

    You are supposed to add the following path
    Add the folders containing the .pyd and .dll files to the PYTHONPATH environment variable.

    Example:

    D:\VTK\VTK-bin\bin\Release\Lib\site-packages\vtkmodules
    D:\VTK\VTK-bin\bin\Release

    Additionally, add the path to bin folder of Qt to the System variable PATH C:\Qt\5.10.0\msvc2017_64\bin

提交回复
热议问题