[英]ImportError with Python OpenCV (undefined symbol)
我從源代碼構建了OpenCV 3.1.0,當我嘗試在Python中import 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: _ZN2cv9Algorithm7getListERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE
操作系統是Ubuntu 16.04 LTS。 我按照本指南使用CUDA 8.0構建OpenCV 。
安裝glib!
例如,如果使用Anaconda,請運行以下命令:
conda install -c anaconda glib
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.