【问题标题】:symbol lookup error after updating conda 'undefined symbol: cairo_ft_font_options_substitute'更新 conda 'undefined symbol: cairo_ft_font_options_substitute' 后符号查找错误
【发布时间】:2015-04-24 11:53:31
【问题描述】:

上周我将 conda 更新到版本 3.11.0,之后我发现 %pylabplt.plot 会遇到符号查找错误。

min@home:~$ ipython
In [1]: from matplotlib import pyplot as plt
In [2]: plt.plot([1, 2, 3, 4])
/home/min/anaconda/bin/python: symbol lookup error: /usr/lib/i386-linux-gnu/libpangocairo-1.0.so.0: undefined symbol: cairo_ft_font_options_substitute

min@home:~$ ipython
In [1]: %pylab
/home/min/anaconda/bin/python: symbol lookup error: /usr/lib/i386-linux-gnu/libpangocairo-1.0.so.0: undefined symbol: cairo_ft_font_options_substitute

我已经重新安装了 Anaconda,一切都变得正常,但是一旦我 conda update condaconda update anaconda,错误又出现了。

【问题讨论】:

  • 遇到了类似的错误,但模块/函数名称不同:未定义符号:cairo_tee_surface_index。不幸的是,没有设法让它在 anaconda 内部工作。

标签: matplotlib anaconda conda


【解决方案1】:

我不确定“conda update conda”和“conda update cairo”之间有什么区别,我尝试了第二个,但没有在我的 fedora 20 i686 中修复它,即使更新了一些软件包。 [1]

所以,我一直在寻找,发现 [2],只是标题让我想到了“conda install cairo”,现在我使用 matplotlib 的大多数旧脚本都可以正常工作。

来源:

[1]https://groups.google.com/a/continuum.io/forum/#!msg/anaconda/R0RdG3HQONg/r_LM-Al6b1YJ

[2]add cairo package in the anaconda python distribution

【讨论】:

    猜你喜欢
    • 2023-01-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多