IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Déploiement/Installation Python Discussion :

[matplotlib] installation depuis les sources


Sujet :

Déploiement/Installation Python

  1. #1
    Nouveau membre du Club
    Inscrit en
    Avril 2005
    Messages
    32
    Détails du profil
    Informations forums :
    Inscription : Avril 2005
    Messages : 32
    Points : 28
    Points
    28
    Par défaut [matplotlib] installation depuis les sources
    Bonjour,

    Je voudrais installer la toute derniere version de matplotlib depuis les sources sur Debian Sarge car celle proposée en paquets est trop ancienne.

    Je voulais savoir si quelqu'un avait déjà réalisé cette opération car chez moi ça ne fonctionne pas.

    Merci

  2. #2
    Membre actif
    Avatar de Choupi
    Profil pro
    Inscrit en
    Janvier 2003
    Messages
    223
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2003
    Messages : 223
    Points : 235
    Points
    235
    Par défaut
    Hello,

    Colle une copie des messages d'erreurs, il y a pas mal de dépendance avec cette lib... Si tu l'installes seuls, tu dois les gerer toi meme.

    Choupi
    MacOS 10.5 / Ubuntu / C / Python / R
    Pensez au tag résolu

  3. #3
    Nouveau membre du Club
    Inscrit en
    Avril 2005
    Messages
    32
    Détails du profil
    Informations forums :
    Inscription : Avril 2005
    Messages : 32
    Points : 28
    Points
    28
    Par défaut
    Voici ce que j'obtient quand j'execute :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    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
    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
    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
    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
    TKAgg requires TkInter
     
    WXAgg's accelerator requires `wx-config'.
     
    The `wx-config' executable could not be located in any directory of the
    PATH environment variable. If you want to build WXAgg, and wx-config is
    in some other location or has some other name, set the WX_CONFIG
    environment variable to the full path of the executable like so:
     
    export WX_CONFIG=/usr/lib/wxPython-2.6.1.0-gtk2-unicode/bin/wx-config
     
    Building MPL without wxAgg
    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
    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
    running build
    running build_py
    running build_ext
    building 'matplotlib.backends._na_backend_gdk' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include -I. -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.3 -c src/_na_backend_gdk.c -o build/temp.linux-i686-2.3/src/_na_backend_gdk.o -DNUMARRAY=1
    src/_na_backend_gdk.c:16:25: error: pygtk/pygtk.h: Aucun fichier ou répertoire de ce type
    src/_na_backend_gdk.c: In function 'pixbuf_get_pixels_array':
    src/_na_backend_gdk.c:35: error: 'PyGObject' undeclared (first use in this function)
    src/_na_backend_gdk.c:35: error: (Each undeclared identifier is reported only once
    src/_na_backend_gdk.c:35: error: for each function it appears in.)
    src/_na_backend_gdk.c:35: error: 'py_pixbuf' undeclared (first use in this function)
    src/_na_backend_gdk.c:36: error: 'GdkPixbuf' undeclared (first use in this function)
    src/_na_backend_gdk.c:36: error: 'gdk_pixbuf' undeclared (first use in this function)
    src/_na_backend_gdk.c:44: warning: implicit declaration of function 'GDK_PIXBUF'
    src/_na_backend_gdk.c:50: warning: implicit declaration of function 'gdk_pixbuf_get_height'
    src/_na_backend_gdk.c:51: warning: implicit declaration of function 'gdk_pixbuf_get_width'
    src/_na_backend_gdk.c:52: warning: implicit declaration of function 'gdk_pixbuf_get_has_alpha'
    src/_na_backend_gdk.c:56: warning: implicit declaration of function 'gdk_pixbuf_get_pixels'
    src/_na_backend_gdk.c:60: warning: implicit declaration of function 'gdk_pixbuf_get_rowstride'
    src/_na_backend_gdk.c: In function 'init_na_backend_gdk':
    src/_na_backend_gdk.c:98: warning: implicit declaration of function 'init_pygtk'
    error: command 'gcc' failed with exit status 1

  4. #4
    Nouveau membre du Club
    Inscrit en
    Avril 2005
    Messages
    32
    Détails du profil
    Informations forums :
    Inscription : Avril 2005
    Messages : 32
    Points : 28
    Points
    28
    Par défaut
    J'ai résussi à installer Matplotlib depuis les sources en procédant de la manière suivante :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
     
    1- Vérifier que numarray/Numeric est présent.
     
    2- Installer :
       apt-get install python-gtk2-dev
       apt-get install tk8.4-dev tk8.4-doc
     
    3-Installation de :
       g++
       libglib2.0-dev (desinstall de glib2-devel qui posait probleme)
       libgtk+2.0
     
    4- Installation de Matplotlib:
       tar zxf matplotlib-0.86.2.tar.gz
       cd matplotlib-0.86.2
       python setup.py build
       python setup.py install
    Cette opération m'a permis d'installer la version 0.86.2 sous Sarge. Ainsi, j'ai résolu un problème qui était la génération de graphique depuis Mod_python.

    En effet, la version 0.82 de matplotlib qui est sur Sarge générait des erreurs d'importation de modules dont j'avais fait mention dans un précédent post :

    http://www.developpez.net/forums/sho...d.php?t=128488

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 1
    Dernier message: 16/11/2013, 12h40
  2. argouml reverse depuis les sources
    Par pcouas dans le forum Outils
    Réponses: 0
    Dernier message: 06/07/2012, 12h05
  3. Recompiler depuis les sources unix
    Par axeloz dans le forum C
    Réponses: 2
    Dernier message: 15/09/2011, 16h21
  4. installation avec les sources, development headers
    Par bourriquet_42 dans le forum Administration système
    Réponses: 1
    Dernier message: 16/12/2008, 10h17
  5. Réponses: 4
    Dernier message: 13/10/2006, 07h33

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo