gpt4 book ai didi

python - 安装软件包 (conda) 会导致 ImportError : Library not loaded

转载 作者:行者123 更新时间:2023-11-30 22:26:12 40 4
gpt4 key购买 nike

我通过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,然后重试。

conda update conda

关于python - 安装软件包 (conda) 会导致 ImportError : Library not loaded,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47296335/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com