博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ubuntu 下安装 matplotlib
阅读量:6591 次
发布时间:2019-06-24

本文共 3138 字,大约阅读时间需要 10 分钟。

直接使用sudo easy_install matplotlib 报错

============================================================================Edit setup.cfg to change the build optionsBUILDING MATPLOTLIB            matplotlib: yes [1.3.1]                python: yes [2.7.6 (default, Mar 22 2014, 22:59:56)  [GCC                        4.8.2]]              platform: yes [linux2]REQUIRED DEPENDENCIES AND EXTENSIONS                 numpy: yes [version 1.8.1]              dateutil: yes [dateutil was not found. It is required for date                        axis support. pip/easy_install may attempt to                        install it after matplotlib.]               tornado: yes [tornado was not found. It is required for the                        WebAgg backend. pip/easy_install may attempt to                        install it after matplotlib.]             pyparsing: yes [pyparsing was not found. It is required for                        mathtext support. pip/easy_install may attempt to                        install it after matplotlib.]                 pycxx: yes [Couldn't import.  Using local copy.]                libagg: yes [pkg-config information for 'libagg' could not                        be found. Using local copy.]              freetype: no  [pkg-config information for 'freetype2' could                        not be found.]                   png: yes [pkg-config information for 'libpng' could not                        be found. Using unknown version.]OPTIONAL SUBPACKAGES           sample_data: yes [installing]              toolkits: yes [installing]                 tests: yes [nose 0.11.1 or later is required to run the                        matplotlib test suite]OPTIONAL BACKEND EXTENSIONS                macosx: no  [Mac OS-X only]                qt4agg: yes [installing, Qt: 4.8.6, PyQt4: 4.10.4]               gtk3agg: yes [installing, version 3.8.10]             gtk3cairo: yes [installing, version 3.8.10]                gtkagg: no  [The C/C++ header for gtk (gtk/gtk.h) could not                        be found.  You may need to install the development                        package.]                 tkagg: no  [TKAgg requires Tkinter.]                 wxagg: no  [requires wxPython]                   gtk: no  [The C/C++ header for gtk (gtk/gtk.h) could not                        be found.  You may need to install the development                        package.]                   agg: yes [installing]                 cairo: yes [installing, version 1.8.8]             windowing: no  [Microsoft Windows only]OPTIONAL LATEX DEPENDENCIES                dvipng: no           ghostscript: yes [version 9.10]                 latex: no               pdftops: yes [version 0.24.5]============================================================================                        * The following required packages can not be built:                        * freetypeerror: Setup script exited with 1
几个依赖关系不好找,各自是numpy tornado pyparsing freetye png

sudo easy_install numpy

sudo easy_install tornado

sudo easy_install pyparsing
sudo apt-get install libfreetype6
sudo apt-get install libpng12-dev

​sudo easy_install matplotlib

转载地址:http://madio.baihongyu.com/

你可能感兴趣的文章
kill
查看>>
小经验:图像精确计算时,注意jpg 与bmp的区别
查看>>
CSS背景颜色、背景图片、平铺、定位、固定
查看>>
链表三:反转链表
查看>>
通过触发器记录数据库连接信息
查看>>
Python教程
查看>>
1 dev repo organize
查看>>
ImmediateFunc.js
查看>>
jmeter参数化之 CSV data set config
查看>>
分组背包,每组最多选1个
查看>>
牛客国庆集训派对Day3 B Tree
查看>>
PHP 笔记——基础
查看>>
Java -- 深入浅出GC自动回收机制
查看>>
开发自己的脚本引擎(一)先吹吹水,再干事情。
查看>>
python中判断对象类型的函数——isinstance
查看>>
计数排序 + 线段树优化 --- Codeforces 558E : A Simple Task
查看>>
javascript版前端页面RSA非对称加密解密
查看>>
convex optimization(ebook+tutorial)best
查看>>
L1 minimization
查看>>
English Corner
查看>>