0
我尝试从源代码安装opencv。我使用Visual Studio 2010,Python 2.7.8并且执行步骤如here。在Windows中为python安装opencv 2.4.9时丢失模块
的问题是,进口CV2当我得到错误:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import cv2
ImportError: DLL load failed: The specified module could not be found.
有以下CV-文件在C:\Python27\Lib\site-packages
:
cv2.pyd
cv.py
cv.pyc
我也有Python的3.4.1,但CMake的没有按”不要看到,所以我认为这不是原因。
但CMake的有蟒集团在短短的两行:
PYTHON_NUMPY_INCLUDE_DIR C:/Python27/lib/site-packages/numpy/core/include
PYTHON_PACKAGES_PATH C:/Python27/Lib/site-packages