如何用python 2.7.13导入cv2?

时间:2017-02-26 13:16:17

标签: python-2.7 opencv

我正在尝试在Mac Sierra上安装opencv-3.2.0,我按照本教程http://www.pyimagesearch.com/2015/06/15/install-opencv-3-0-and-python-2-7-on-osx/但是当我用解释器python导入cv2时出现了这个错误

Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: dlopen(/Users/karim/.virtualenvs/cv_env/lib/python2.7/site-packages/cv2.so, 2): Symbol not found: __ZL13pyopencv_fromIN2cv4MatxIdLi4ELi4EEEEP7_objectRKT_ Referenced from: /Users/karim/.virtualenvs/cv_env/lib/python2.7/site-packages/cv2.so Expected in: flat namespace in /Users/karim/.virtualenvs/cv_env/lib/python2.7/site-packages/cv2.so 具体 版本python:python 2.7.13, virtualenv名称:cv_env

0 个答案:

没有答案