2013-08-24 49 views
3
上OSX 10.8.4安装matplotlib

我想每一个链接,可在网络上,但仍然我收到以下错误:无法与VIRTUALENV

Edit setup.cfg to change the build options 

BUILDING MATPLOTLIB 
      matplotlib: yes [1.4.x] 
       python: yes [2.7.5 (default, Jul 28 2013, 07:27:04) [GCC 
         4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)]] 
       platform: yes [darwin] 

REQUIRED DEPENDENCIES AND EXTENSIONS 
       numpy: yes [version 1.7.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: yes [darwin] 
       qt4agg: no [PyQt4 not found] 
       gtk3agg: no [Requires pygobject to be installed.] 
      gtk3cairo: no [Requires cairo to be installed.] 
       gtkagg: no [Requires pygtk] 
       tkagg: yes [version 81008] 
       wxagg: no [requires wxPython] 
        gtk: no [Requires pygtk] 
        agg: yes [installing] 
       cairo: no [cairo not found] 
      windowing: no [Microsoft Windows only] 

OPTIONAL LATEX DEPENDENCIES 
       dvipng: no 
      ghostscript: no 
       latex: no 
       pdftops: no 
============================================================================ 
         * The following required packages can not be built: 
         * freetype 

这里是我试过的东西:

我在我的原生python环境中成功安装了numpyscipy。由于我无法安装matplotlib,我决定切换到virtualenv

这里是链接:从matplotlib.org

  • 博客文章

    结束了上述问题,每一个选项。任何帮助都会很棒。

  • 回答

    9

    如果尚未安装brew有:

    ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)" 
    

    然后执行:

    brew install freetype 
    brew install libpng 
    

    可能是不需要的最后一行,但只是要确定。然后用pip重试。

    编辑: 我也建议你试试conda安装程序。

    +0

    对不起,忘了把它放在我的问题,我试图安装freetype位没有安装libpng我会尝试该部分。 –

    +0

    以及似乎freetype没有被发现,你可以尝试查看给出的说明[这里](http://stackoverflow.com/a/10843478/1330293) – elyase

    +0

    谢谢你做的工作。 –