2
我有Windows 8 64位和Python 2.11 64位。我使用pip命令安裝VTK庫。它顯示了以下錯誤運行時:在Python中導入.vtk錯誤
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
我的道路是:
C:\Python27\Lib;
C:\Python27\Lib\site-packages;
C:\Python27\Lib\site-packages\vtk;
C:\Python27\Scripts;
感謝您的幫助。
某些庫需要一個DLL(使用源或全局構建)。無論如何,你安裝模塊,但不能建立DLL的來源。如果沒有任何C/C++編譯器(不適用於所有模塊),則無法安裝模塊。檢查您的PIP日誌,您將看到多個錯誤。 – dsgdfg
謝謝。我可以通過卸載.vtk和安裝vtk 6.2來解決問題。 0來自http://www.lfd.uci.edu/~gohlke/pythonlibs/ –
不用客氣。 – dsgdfg