我尝试cv
在 python 中导入,但出现此错误:
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)