I matplotlib überMatplotlib - libpng Fehler: Inkompatible libpng Version in Anwendung und Bibliothek
installiertpip install matplotlib
Wenn ich versuche, mit ihm png zu speichern, erhalte ich
Application was compiled with png.h from libpng-1.6.21
libpng warning: Application is running with png.c from libpng-1.2.44
libpng error: Incompatible libpng version in application and library
ldconfig -p | grep libpng
gibt mir
libpng12.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libpng12.so.0
libpng12.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpng12.so.0
libpng12.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpng12.so
Ich baue dann libpng1.6.21
aus Quelle und fügen Siehinzuzu meinem LD_LIBRARY_PATH
. Aber ldconfig -p | grep libpng
gibt mir immer noch das gleiche wie vorher. Ich habe versucht, die ldconfig
- immer noch nur libpng12
umbauen.
Wie kann ich Matplotlib die neu installierte libpng1.6.21
abholen lassen?
Warum ist die neue libpng1.6.21
in meinem LD_LIBRARY _PATH
bereits, aber nicht von ldconfig
indiziert?
Wie sieht Ihr LD_LIBRARY_PATH aus? Ich denke, dass Sie das Verzeichnis von libpng1.6.21 dem Verzeichnis von libpng1.2.44 vorausgehen müssen – Ken