简体   繁体   中英

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

After install caffe in conda virtual environment with Python 3.5

I am getting this error on importing caffe

Traceback (most recent call last): File "", line 1, in File "/var/caffe-master/python/caffe/ init .py", line 1, in from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer File "/var/caffe-master/python/caffe/pycaffe.py", line 13, in from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \\ ImportError: /usr/lib/libgdal.so.20: undefined symbol: sqlite3_column_table_name

I have installed Caffe for CPU only. Here is what i get when i echo $PYTHONPATH: /home/anaconda3/bin/caffe/python:

Please Help!!

Here you can find instructions about how to safely uninstall anaconda from your system - Python Anaconda - How to Safely Uninstall .

Once you have successfully uninstalled anaconda you should be ready to install caffe.

In order to do this go to github.com/BVLC/caffe and download the repository somewhere on your system.

Then open a terminal, cd to the directory where you downloaded caffe repository and compile it with CMAKE.

Once the process is finished, you should be able to open Python and import caffe successfully.

Let me know if you solve the problem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM