Installation de matplotlib et de ses dépendances sans les privilèges root

Je veux utiliser matplotlib sur un serveur où j'ai un compte /myhome sans les privilèges root.

J'ai téléchargé le matplotlib sources et essayé de l'installer à l'aide de la distutils avec l'utilisateur sheme, dire python setup.py install --usermais il a renvoyé le message suivant :

============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
        matplotlib: yes [1.3.1]
            python: yes [2.7.3 (default, Jan  2 2013, 13:56:14)  [GCC
                    4.7.2]]
          platform: yes [linux2]

REQUIRED DEPENDENCIES AND EXTENSIONS
             numpy: yes [version 1.6.2]
          dateutil: yes [using dateutil version 1.5]
           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.2, PyQt4: 4.9.3]
           gtk3agg: yes [installing, version 3.2.4]
         gtk3cairo: yes [installing, version 3.2.4]
            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: yes [version 1.14]
       ghostscript: yes [version 9.05]
             latex: yes [version 3.1415926]
           pdftops: yes [version 0.18.4]

============================================================================
                    * The following required packages can not be built:
                    * freetype

Il semble que le package 'freetype' manquait, j'ai donc téléchargé les sources, et j'ai trouvé qu'il pourrait être installé dans un lieu précis en cours d'exécution:

./configure --prefix=/myhome/somedir
make
make install

Ma question est: où dois-je installer freetype de sorte qu'il peut être détecté par le distutils ?

Ma première pensée a été pour l'installer dans /myhome/.local parce que c'est là que le distutils installer un module lors de l'utilisation de la --user option.
Malheureusement, en faisant cela, j'ai toujours le même message que ci-dessus.

J'ai essayé quelque chose de plus compliqué par la création d'un environnement virtuel à l'aide de la virtualenv package :

virtualenv /myhome/venv/

Puis j'ai installé freetype dans myhome/venv/ et enfin, j'ai couru le distutils au sein de cet environnement virtuel, mais il m'a donné le même message à nouveau.

Merci beaucoup pour votre aide, et, bien sûr, je ne vais pas demander à mon sysadmin pour installer matplotlib pour moi.

PS: quelque chose de certainement rien à voir avec mon problème, mais peut-être intéressant de noter : - je installer freetype package à l'aide de ./configure --prefix=/myhome/somedir --without-png. Sans le --without-png option, j'obtiens l'erreur suivante:

checking for libpng... configure: error: `libpng-config' not found;
either set the LIBPNG_CFLAGS and LIBPNG_LDFLAGS environment variables,
or pass `--without-png' to the `configure' script.

source d'informationauteur user3156933