我尝试导入一个模块:
import cv
我收到以下错误消息:
ImportError: DLL load failed: The specified module could not be found.
但是如果我尝试导入一个绝对不存在的库,例如:
import blabla
我得到:
ImportError: No module named blabla
因此,我得出结论,cv
图书馆并没有完全隐藏。Python能够看到一些东西。有谁知道 Python 能够看到什么以及缺少什么?
添加
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
添加 2
在包含库的目录中有包含许多文件cv
的子目录 ( )。所以,我尝试了:C:\OpenCV2.2\bin
*.dll
import sys
sys.path.append("C:\OpenCV2.2\bin")
我仍然得到“dll加载失败”。有没有办法找出究竟缺少哪个“dll”文件。我的意思是,Python 试图找到一个特定的 dll 文件(比如说 cv.dll)却找不到它?