Jetson-TX2:The Gtk3Agg backend is known to not work on Python 3.x with pycairo.

网友投稿 1204 2022-08-22

Jetson-TX2:The Gtk3Agg backend is known to not work on python 3.x with pycairo.

Jetson-TX2:The Gtk3Agg backend is known to not work on Python 3.x with pycairo.

开始接触python代码的时候,我觉得python好简单,但是后来发现,它特别不听话,兼容性非常的差,我决定把我遇到的每一个bug都记录下来,让大家少走弯路。

当我输入python3进入python交互界面,然后输入代码:

import matplotlib.pyplot as plt

然后就出现了如下的错误信息:

/usr/local/lib/python3.5/dist-packages/matplotlib/backends/backend_gtk3agg.py:17: UserWarning: The Gtk3Agg backend is

known to not work on Python 3.x with pycairo. Try installing cairocffi. "The Gtk3Agg backend is known to not work on Python 3.x with pycairo. "

然后查资料后,只需要下面的安装就行了:

sudo apt-get install python3-cairocffi

参考文献

[1].Python matplotlib Cairo error.**: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.PLT都没有。show().http://91r-/ask/33329921.html

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Golang必备技巧:接口型函数(golang 接口类型)
下一篇:解决隐马模型中预测问题的算法是?
相关文章

 发表评论

暂时没有评论,来抢沙发吧~