【发布时间】:2018-04-28 00:35:16
【问题描述】:
我通过 conda 安装了 seaborn 包:
~user: conda install seaborn
The following NEW packages will be INSTALLED:
seaborn: 0.8-py27_0
The following packages will be UPDATED:
conda: 4.3.8-py27_0 --> 4.3.30-py27h407ed3a_0
matplotlib: 1.4.3-np19py27_2 --> 1.5.3-np111py27_1
statsmodels: 0.6.1-np19py27_0 --> 0.8.0-np111py27_0
它弄乱了我的 matplotlib 安装,现在当我运行我的 python 脚本时,它在导入 matplotlib 时引发错误:
ImportError: dlopen(/Users/.../anaconda/lib/python2.7/site-packages/matplotlib/_png.so, 2): Library not loaded: @rpath/libpng16.16.dylib
Referenced from: /Users/.../anaconda/lib/python2.7/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
【问题讨论】:
标签: python matplotlib installation packages importerror