Installing a package (conda) results in ImportError: Library not loaded
Installing a package (conda) results in ImportError: Library not loaded
我通过 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
在您的 conda 命令提示符下试试这个:
conda 安装-c anaconda seaborn
这个错误可能是旧版本的conda引起的。您需要先更新 conda,然后重试。
conda update conda
我通过 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
在您的 conda 命令提示符下试试这个:
conda 安装-c anaconda seaborn
这个错误可能是旧版本的conda引起的。您需要先更新 conda,然后重试。
conda update conda