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.https://stackoverflow.com/questions/27749664/python-matplotlib-cairo-error

[2].Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.https://github.com/opencv/opencv/issues/6680

[3].图可见用matplotlib PLT都没有。show().http://www.91r.net/ask/33329921.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

农民小飞侠

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值