pip installieren matplotlib: "keine pkg-config"

Wenn ich pip install matplotlib (innerhalb einer virtualenv), die ersten Zeilen der Ausgabe sind:

Downloading/unpacking matplotlib
  Running setup.py egg_info for package matplotlib
    basedirlist is: ['/usr/local/', '/usr', '/usr/X11', '/opt/local']
    ============================================================================
    BUILDING MATPLOTLIB
                matplotlib: 1.2.0
                    python: 2.7.3 (default, Dec 14 2012, 13:31:05)  [GCC 4.2.1
                            (Apple Inc. build 5666) (dot 3)]
                  platform: darwin

    REQUIRED DEPENDENCIES
                     numpy: 1.6.2
                 freetype2: found, but unknown version (no pkg-config)

    OPTIONAL BACKEND DEPENDENCIES
                    libpng: found, but unknown version (no pkg-config)
                   Tkinter: Tkinter: 81008, Tk: 8.5, Tcl: 8.5
                      Gtk+: no
                            * Building for Gtk+ requires pygtk; you must be able
                            * to "import gtk" in your build/install environment
           Mac OS X native: yes
                        Qt: no
                       Qt4: no
                    PySide: no
                     Cairo: no
<snip>

Hinweis

  1. die "keine pkg-config", und
  2. der fehlenden Qt-Bibliothek.

Ersten, im Gegensatz zu dem, was die Ausgabe oben sagt, pkg-config ist in der Tat installiert und auf der PATH:

% pkg-config --version
0.27.1
% which pkg-config
/usr/local/bin/pkg-config

Zweiten qt im selben Verzeichnis, wo freetype und libpng wurden gefunden:

% ls -l /usr/local/opt/{freetype,libpng,qt} | cut -c43-
/usr/local/opt/freetype -> ../Cellar/freetype/2.4.10/
/usr/local/opt/libpng -> ../Cellar/libpng/1.5.13/
/usr/local/opt/qt -> ../Cellar/qt/4.8.4/

Meine Frage hat drei Teile:

  1. Wo kommt pip install matplotlib bekommen, dass basedirlist (3. Zeile der obigen Ausgabe)?
  2. Was muss ich anders machen, so dass pip install matplotlib finden pkg-config?
  3. Was muss ich anders machen, so dass pip install matplotlib finden qt?
InformationsquelleAutor kjo | 2012-12-20
Schreibe einen Kommentar