matplotlib 不适用于 ubuntu 10.10 [英] matplotlib won't work on ubuntu 10.10

查看:54
本文介绍了matplotlib 不适用于 ubuntu 10.10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让matplotlib在ubuntu 10.10中工作时遇到问题.

I'm having a problem getting matplotlib to work in ubuntu 10.10.

我先用apt-get安装matplotlib,后来发现版本是0.99,官网上的一些例子就是不行.然后,我下载1.01版本并安装它,而没有卸载0.99版本.为了使情况更具体,这里是配置:

First I install the matplotlib using apt-get, and later I found that the version is 0.99 and some examples on the official site just won't work. Then I download the 1.01 version and install it without uninstalling the 0.99 version. To make the situation more specific, here is the configuration:

BUILDING MATPLOTLIB
            matplotlib: 1.0.1
                python: 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)  [GCC
                        4.4.5]
              platform: linux2

REQUIRED DEPENDENCIES
                 numpy: 1.6.0b1
             freetype2: 12.2.6

OPTIONAL BACKEND DEPENDENCIES
                libpng: 1.2.44
               Tkinter: no
                        * Using default library and include directories for
                        * Tcl and Tk because a Tk window failed to open.
                        * You may need to define DISPLAY for Tk to work so
                        * that setup can determine where your libraries are
                        * located. Tkinter present, but header files are not
                        * found. You may need to install development
                        * packages.
              wxPython: no
                        * wxPython not found
            pkg-config: looking for pygtk-2.0 gtk+-2.0
                        * Package pygtk-2.0 was not found in the pkg-config
                        * search path. Perhaps you should add the directory
                        * containing `pygtk-2.0.pc' to the PKG_CONFIG_PATH
                        * environment variable No package 'pygtk-2.0' found
                        * Package gtk+-2.0 was not found in the pkg-config
                        * search path. Perhaps you should add the directory
                        * containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH
                        * environment variable No package 'gtk+-2.0' found
                        * You may need to install 'dev' package(s) to
                        * provide header files.
                  Gtk+: no
                        * Could not find Gtk+ headers in any of
                        * '/usr/local/include', '/usr/include', '.'
       Mac OS X native: no
                    Qt: no
                   Qt4: no
                 Cairo: 1.8.8

OPTIONAL DATE/TIMEZONE DEPENDENCIES
              datetime: present, version unknown
              dateutil: 1.4.1
                  pytz: 2010b

OPTIONAL USETEX DEPENDENCIES
                dvipng: no
           ghostscript: 8.71
                 latex: no
               pdftops: 0.14.3

[Edit setup.cfg to suppress the above messages]

现在我可以导入 matplotlib,但是一旦我运行示例代码,它就会终止并且我没有得到任何结果.我多次尝试干净安装",这意味着我删除了所有文件,包括 .matplotlib 和 dist-package 下的 matplotlib 目录,但我仍然无法完成任务.

and now i can import matplotlib but once i run the example code, it just terminated and I get no results. I tried to 'clean install' several times, which means I delete all the files include the .matplotlib and the matplotlib directory under dist-package, but I still can't get things done.

奇怪的是,在我重新安装0.99版本后,它运行得很好.

What makes weirder is that after I reinstall the 0.99 version, it works pretty well.

有什么想法吗?

推荐答案

Ben Gamari 已将 打包 Ubuntu 的 matplotlib 1.0.

Ben Gamari has packaged matplotlib 1.0 for Ubuntu.

这篇关于matplotlib 不适用于 ubuntu 10.10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆