I have Windows 8 64 bit and Python 2.11 64 bit. I install VTK library using pip command. It shows the following error while running:
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import vtk
File "C:\Python27\lib\site-packages\vtk\__init__.py", line 72, in <module>
__helper.refine_import_err('rendering', 'vtkRenderingPython', exc)
File "C:\Python27\lib\site-packages\vtk\__helper.py", line 32, in refine_import_err
raise LinkError, str(exc)
LinkError: DLL load failed: The specified module could not be found.` Traceback
My PATH are:
C:\Python27\Lib;
C:\Python27\Lib\site-packages;
C:\Python27\Lib\site-packages\vtk;
C:\Python27\Scripts;
Thanks for your help.
I could solve the problem with uninstalling .vtk 5 and installing vtk 6.2. 0 from http://www.lfd.uci.edu/~gohlke/pythonlibs/ . I also install PyQt4
In my case, the problem was resolved by adding PyQt4's directory to PATH, as suggested here . That is, the directory similar to
C:\Python27\Lib\site-packages\PyQt4
which contains the DLL that it's looking for.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.