matplotlib安装问题
来源:互联网 发布:ant java 编辑:程序博客网 时间:2024/06/06 01:47
画图时出现错误:
/usr/local/lib/python3.4/dist-packages/matplotlib/backends/backend_gtk3agg.py:18: 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. "Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/matplotlib/backends/backend_gtk3agg.py", line 69, in on_draw_event buf, cairo.FORMAT_ARGB32, width, height)NotImplementedError: Surface.create_for_data: Not Implemented yet.Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/matplotlib/backends/backend_gtk3agg.py", line 69, in on_draw_event buf, cairo.FORMAT_ARGB32, width, height)NotImplementedError: Surface.create_for_data: Not Implemented yet./usr/local/lib/python3.4/dist-packages/matplotlib/backends/backend_gtk3.py:215: Warning: Source ID 7 was not found when attempting to remove it GLib.source_remove(self._idle_event_id)
解决方法:解决方案:
正如你所看到的,所以给出的建议是:cairocffi很简单的安装指南。如果满足依赖关系*那么简单:*逻辑应该的依赖关系:
原文:
As you can see:
"The Gtk3Agg backend is known to not work on Python 3.x with pycairo."
And so the suggestion presented is:
Try installing cairocffi.
The installation guide for cairocffi is pretty straight-forward. If the dependencies* are met it is as simple as:
pip install cairocffi
*The dependencies for Py3
should logically be:
sudo apt-get install python3-devsudo apt-get install libffi-dev
其中,在安装libffi-dev要求安装libffi6的固定版本,即出现一下错误:
libffi-dev : Depends: libffi6 (= 3.1~rc1+r3.0.13-12) but 3.1~rc1+r3.0.13-12ubuntu0.1 is to be installed
通过如下方法安装指定版本:
sudo apt-cache policy libffi6sudfo apt-get install libffi6=3.1~rc1+r3.0.13-12
阅读全文
0 0
- Centos7 安装 matplotlib问题
- matplotlib安装问题
- centOS下matplotlib安装问题
- 安装matplotlib遇到的问题
- python matplotlib 安装碰到的问题
- python中安装matplotlib的问题
- python2.7安装matplotlib的一些问题
- python2.7安装Matplotlib相关问题
- Python——解决Matplotlib安装问题
- centos下 matplotlib 安装失败问题
- pip安装 matplotlib 时问题记录
- matplotlib安装
- 安装matplotlib
- matplotlib 安装
- 安装matplotlib
- matplotlib安装
- 安装matplotlib
- CentOS下matplotlib的安装中图形显示问题
- 从redis获取图片展示到jsp
- 设计模式之单例模式
- 生成多个不重复的随机数字php
- JS对象:offset、scroll、event、client
- OpenGL坐标变换矩阵
- matplotlib安装问题
- n个整数存入一维数组中,将该数组循环移动m位,用指针实现。
- 未能找到元素“log4net”的架构信息
- 深度性能测试:功能决定现在,性能决定未来!
- offer45--约瑟夫环
- acrobat javascript
- Linux常用压缩解压命令总结
- 14、Selenium + Python 实现 UI 自动化测试-操作Frame(iFrame)
- Python注意事项和误区