我试图运行一个使用OpenCV库的Python脚本,但当我在Blender中点击“运行脚本”时,在控制台中出现了以下错误:
ImportError: No module named 'cv2'
Error: Python script fail, look in the console for now...
首先我已经从
C:\ opencv \ build \ python \ 2.7
复制并粘贴了文件cv2.pyd
,到C:\ Program Files \ Blender Foundation \ Blender \ 2.66 \ python \ lib
,然而新的错误是:ImportError: Module use of python27.dll conflicts with this version of Python.have
Error: Python script fail, look in the console for now...
然后我复制粘贴了同名文件,但是路径改为C:\opencv\build\python\2.6
,新的输出如下:
ImportError: DLL load failed: Le module spécifié est introuvable.
Error: Python script fail, look in the console for now...
我的配置:
Win7 32bit
OpenCV 2.4.6
Both Python 3.3 and 2.7
Blender 2.66
Qt:我该如何让Blender和OpenCV兼容?