A user had an issue using Anaconda 2.7 where their libpng package was set at version 1.6.17. This was causing an error of the form:
ImportError: dlopen(/Users/X/anaconda/envs/py3/lib/python3.5/site-packages/matplotlib/_png.so, 2): Library not loaded: @rpath/libpng16.16.dylib
Referenced from: /Users/X/anaconda/envs/py3/lib/python3.5/site-packages/matplotlib/_png.so
Reason: Incompatible library version: _png.so requires version 39.0.0 or later, but libpng16.16.dylib provides version 34.0.0
The problem was that somehow the systemwide libpng was getting used (or version 1.6.17 is insufficient) and a conda upgrade linpng wouldn't cause the upgrade. Solved by having the user issue the following:
A user had an issue using Anaconda 2.7 where their
libpng
package was set at version1.6.17
. This was causing an error of the form:The problem was that somehow the systemwide
libpng
was getting used (or version1.6.17
is insufficient) and aconda upgrade linpng
wouldn't cause the upgrade. Solved by having the user issue the following:conda remove libpng
conda install libpng=1.6.22