在python中导入cv模块时出错

时间:2012-12-25 12:27:51

标签: python computer-vision

我试图在python中导入cv,但是我收到了这个错误:

undefined symbol: _ZN2cv17phaseCorrelateResERKNS_11_InputArrayES2_S2_Pd

我先执行了这个命令:

export PYTHONPATH="/usr/local/lib/python2.7/site-packages/:$PYTHONPATH" 

然后:

import cv

完整的追溯:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/cv.py", line 1, in <module>
    from cv2.cv import *
ImportError: /usr/local/lib/python2.7/site-packages/cv2.so: undefined symbol: _ZN2cv17phaseCorrelateResERKNS_11_InputArrayES2_S2_Pd

如果我执行:

import cv2.cv
segmentation fault (core dumped)

0 个答案:

没有答案