I am using Python3 on Windows 10 x64. I am using python by using Msys2. I have installed several packages by using Msys2 and they work with python without problems.
I have installed vtk 8.2 by using Msys2. vtk 8.2 is the latest version in the Msys2 resources. Python gives the following error for “import vtk” command:
Traceback (most recent call last): File "C:\msys64\mingw64\lib\python3.8\site-packages\vtkmodules\vtkIOGDAL.py", line 5, in <module> from .vtkIOGDALPython import * ImportError: DLL load failed while importing vtkIOGDALPython: The specified module could not be found.
I have looked at the directory but there is no dll files. There are py and pyd files.
I have added following variables as PATH:
C:\msys64\mingw64\bin C:\msys64\mingw64\lib\python3.8\site-packages\vtkmodules C:\msys64\mingw64\lib\python3.8\site-packages C:\msys64\mingw64\lib
But it did not change. Installing vtk by using pip does not work. It gives following error:
ERROR: Could not find a version that satisfies the requirement vtk ERROR: No matching distribution found for vtk
Python: 3.8.6 (x64)
vtk: 8.2 (x64)
Windows 10 (x64)
Is there any solution to fix this problem?