每当我尝试导入cv2时,总是出现以下错误:
感谢大家提出的建议!
import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/lib/libgdal.so.1: undefined symbol: sqlite3_column_table_name
我已经创建了一个符号链接,并且已经从Ubuntu软件中心安装了libgdal-dev模块。有任何想法吗?谢谢!
编辑:我按照pbu的建议做了,大部分情况下链接都成功创建了。但现在出现了这个错误:
import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/libgdal.so.1: cannot read file data: Is a directory
感谢大家提出的建议!
$locate libgdal.so
然后ln -s /usr/local/lib/libgdal.so /usr/lib
。 - pbu