Opencv是通过pip安装的,但无法在cmd中导入

时间:2017-02-28 07:52:35

标签: python opencv numpy

我已经通过pip install opencv-python点击安装opencv并且已成功安装,但是当我尝试导入时,显示为The specific module could not be foundenter image description here

这是opencv的 init .py代码

import sys import os #FFMPEG dll is not found on Windows without this os.environ["PATH"] += os.pathsep + os.path.dirname(os.path.realpath(file)) from . import cv2 sys.modules['cv2'] = cv2

1 个答案:

答案 0 :(得分:0)

我已经关注了这个blog,它对我有用