Caffe installation in ubuntu 17.04: Import Error: /usr/lib/libgdal.so.20: undefined symbol: sqlite3_column_table_name

Caffe installation in ubuntu 17.04: Import Error: /usr/lib/libgdal.so.20: undefined symbol: sqlite3_column_table_name

在Python 3.5

的conda虚拟环境中安装caffe后

我在导入 caffe 时遇到此错误

回溯(最后一次调用): 文件“”,第 1 行,位于 文件“/var/caffe-master/python/caffe/init.py”,第 1 行,位于 从 .pycaffe 导入 Net、SGDSolver、NesterovSolver、AdaGradSolver、RMSPropSolver、AdaDeltaSolver、AdamSolver、NCCL、定时器 文件“/var/caffe-master/python/caffe/pycaffe.py”,第 13 行,位于 从 ._caffe 导入网络、SGDSolver、NesterovSolver、AdaGradSolver、\ 导入错误:/usr/lib/libgdal.so.20:未定义的符号:sqlite3_column_table_name

我只为 CPU 安装了 Caffe。 这是我回显 $PYTHONPATH 时得到的结果:/home/anaconda3/bin/caffe/python:

请帮忙!!

在这里您可以找到有关如何从系统中安全卸载 anaconda 的说明 - Python Anaconda - How to Safely Uninstall

成功卸载 anaconda 后,您应该准备好安装 caffe。

要执行此操作,请转至 github.com/BVLC/caffe 并将存储库下载到您系统的某个位置。

然后打开终端,cd到你下载caffe仓库的目录,用CMAKE编译。

该过程完成后,您应该能够打开 Python 并成功导入 caffe。

如果你解决了问题请告诉我