使用Python OpenCV导入错误(未定义符号)
我从源代码构建了OpenCV 3.1.0,当我尝试在Python中导入cv2时,出现以下错误:使用Python OpenCV导入错误(未定义符号),python,opencv,Python,Opencv,我从源代码构建了OpenCV 3.1.0,当我尝试在Python中导入cv2时,出现以下错误: Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: /usr/lib/python2.7/dist-packages/cv2.x86_64-linux-gnu.so: undefined symbol: _ZN2cv9Algorithm7getListERSt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/lib/python2.7/dist-packages/cv2.x86_64-linux-gnu.so: undefined symbol: _ZN2cv9Algorithm7getListERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
导入错误:/usr/lib/python2.7/dist-packages/cv2.x86_64-linux-gnu.so:未定义的符号:_zn2cv9算法7GetListersT6VectorInst7_uCXX1112基本\u stringIcSt11char_TraitsIceeeseis7_EE
操作系统是Ubuntu 16.04 LTS。我跟着。安装glib
例如,如果使用Anaconda,请运行以下命令:
conda安装-c anaconda glib
请你详细说明与这个问题的相关性好吗?