且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在ubuntu上为蟒蛇2.7的Anaconda安装Caffe失败,找不到libpng16.so.16

更新时间:2023-11-17 11:48:28

每个@cel建议-

ldd libopencv_highgui.so 

显示此库所依赖的文件.其中几个(不是libpng!)位于我没有包含在makefile.config中的文件夹中.将他们的文件夹包含到MakeFile中之后,构建成功.注意:构建caffe之后,您可能将不会进入Spyder到PythonPath管理器中并将caffe的文件夹添加到其中(或者,如果不使用anaconda \ spyder,则将其包含在pythonpath中).

shows the files on which this lib depends. Couple of them (not the libpng!) were located in folder which I haven't included into the makefile.config. After including their folder into MakeFile build succeeded. Notice: after building the caffe you may won't to go in Spyder into the PythonPath manager and add the caffe's folder into it (or just include it into pythonpath if you are not using anaconda\spyder).