問題描述python
>>> import caffe Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/xxx/Downloads/caffe/python/caffe/__init__.py", line 1, in <module> from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer File "/home/xxx/Downloads/caffe/python/caffe/pycaffe.py", line 13, in <module> from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \ ImportError: libopencv_core.so.3.4: cannot open shared object file: No such file or directory
問題緣由url
一種是系統中自己不存在該文件,這個須要自行查找;一種是系統存在該文件,只是系統不知道,可以使用如下方法試試;spa
嘗試方法.net
~/Downloads/caffe$ sudo ldconfig
使用以上方法問題仍是沒有解決;code
參考blog
1.ImportError: libopencv_core.so.3.1: cannot open shared object file: No such file or directory;get
完it