libcaffe.so: cannot open shared object file 解决办法
2016-03-10 17:00
661 查看
最近在用caffe的oython模块,发现一个奇怪的问题,在用系统的python(teminal中调用)时,导入 caffe模块没问题,但是用spyder或者eclipse import caffe老是报错,说是 libcaffe.so(caffe/build/lib/文件夹下)文件找不到,此时如果在spyder或者eclipse中添加路径都不好使,因为libcaffe.so不是一个python模块,它是一个静态链接库.解决办法如下:
关闭terminal ,重启spyder或者eclipse, import成功
参考博客:
https://lonesysadmin.net/2013/02/22/error-while-loading-shared-libraries-cannot-open-shared-object-file/ http://blog.csdn.net/thesby/article/details/50791469
$ sudo gedit /etc/ld.so.confinclude ld.so.conf.d/*.conf/home/whz/DNN/apollocaffe/build/lib #添加这一行,注意改成你自己的路径
$ sudo ldconfig
关闭terminal ,重启spyder或者eclipse, import成功
参考博客:
https://lonesysadmin.net/2013/02/22/error-while-loading-shared-libraries-cannot-open-shared-object-file/ http://blog.csdn.net/thesby/article/details/50791469
相关文章推荐
- 十分钟让你明白Objective-C的语法(和Java、C++的对比)
- Object.wait()与Object.notify()的用法
- rg.hibernate.ObjectNotFoundException: No row with the given identifier exists
- Objective-C iOS多线程之GCD深入理解
- object类
- 读《Objective-C高级编程iOS与OS X多线程和内存管理》
- GCD使用技巧
- GCD详细介绍
- Objective-C运行时
- 《DLL for Win32/MFC》Part 4, MFC DLL Object
- -[__NSArrayI removeAllObjects]: unrecognized selector sent to instance 0x7fa8dc830110
- Object-c---NSPredicate用法
- Using $this when not in object context错误信息
- Object.hasOwnProperty
- objective-c变量属性说明
- [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
- Java——JSON——JSONObject、JSONArray
- object类型强制转换成Int类型的方法
- JS的Object类的属性、方法及如何创建对象
- Python源代码--整数对象(PyIntObject)的内存池