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

Python Discussion :

Pb installation lxml


Sujet :

Python

  1. #1
    Candidat au Club
    Homme Profil pro
    Inscrit en
    Mai 2013
    Messages
    3
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Pas de Calais (Nord Pas de Calais)

    Informations professionnelles :
    Secteur : Enseignement

    Informations forums :
    Inscription : Mai 2013
    Messages : 3
    Points : 4
    Points
    4
    Par défaut Pb installation lxml
    Hello,
    je suis sous windows en python 2.7
    je n'arrive pas a installer la librairie
    lxml

    (http://lxml.de/)

    avec la commande pip install lxml
    j'ai le code erreur suivant :

    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
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    pdata\local\temp\pip-1toe5z-record\install-record.txt --single-version-externall
    y-managed --compile:
        Building lxml version 3.6.4.
        Building without Cython.
        ERROR: 'xslt-config' n'est pas reconnu en tant que commande interne
        ou externe, un programme ex'cutable ou un fichier de commandes.
     
        ** make sure the development packages of libxml2 and libxslt are installed *
    *
     
        Using build configuration of libxslt
        running install
        running build
        running build_py
        creating build
        creating build\lib.win32-2.7
        creating build\lib.win32-2.7\lxml
        copying src\lxml\builder.py -> build\lib.win32-2.7\lxml
        copying src\lxml\cssselect.py -> build\lib.win32-2.7\lxml
        copying src\lxml\doctestcompare.py -> build\lib.win32-2.7\lxml
        copying src\lxml\ElementInclude.py -> build\lib.win32-2.7\lxml
        copying src\lxml\pyclasslookup.py -> build\lib.win32-2.7\lxml
        copying src\lxml\sax.py -> build\lib.win32-2.7\lxml
        copying src\lxml\usedoctest.py -> build\lib.win32-2.7\lxml
        copying src\lxml\_elementpath.py -> build\lib.win32-2.7\lxml
        copying src\lxml\__init__.py -> build\lib.win32-2.7\lxml
        creating build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\__init__.py -> build\lib.win32-2.7\lxml\includes
        creating build\lib.win32-2.7\lxml\html
        copying src\lxml\html\builder.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\clean.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\defs.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\diff.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\ElementSoup.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\formfill.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\html5parser.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\soupparser.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\usedoctest.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\_diffcommand.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\_html5builder.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\_setmixin.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\__init__.py -> build\lib.win32-2.7\lxml\html
        creating build\lib.win32-2.7\lxml\isoschematron
        copying src\lxml\isoschematron\__init__.py -> build\lib.win32-2.7\lxml\isosc
    hematron
        copying src\lxml\lxml.etree.h -> build\lib.win32-2.7\lxml
        copying src\lxml\lxml.etree_api.h -> build\lib.win32-2.7\lxml
        copying src\lxml\includes\c14n.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\config.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\dtdvalid.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\etreepublic.pxd -> build\lib.win32-2.7\lxml\includ
    es
        copying src\lxml\includes\htmlparser.pxd -> build\lib.win32-2.7\lxml\include
    s
        copying src\lxml\includes\relaxng.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\schematron.pxd -> build\lib.win32-2.7\lxml\include
    s
        copying src\lxml\includes\tree.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\uri.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\xinclude.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\xmlerror.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\xmlparser.pxd -> build\lib.win32-2.7\lxml\includes
     
        copying src\lxml\includes\xmlschema.pxd -> build\lib.win32-2.7\lxml\includes
     
        copying src\lxml\includes\xpath.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\xslt.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\etree_defs.h -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\lxml-version.h -> build\lib.win32-2.7\lxml\include
    s
        creating build\lib.win32-2.7\lxml\isoschematron\resources
        creating build\lib.win32-2.7\lxml\isoschematron\resources\rng
        copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib
    .win32-2.7\lxml\isoschematron\resources\rng
        creating build\lib.win32-2.7\lxml\isoschematron\resources\xsl
        copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win
    32-2.7\lxml\isoschematron\resources\xsl
        copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win
    32-2.7\lxml\isoschematron\resources\xsl
        creating build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron
    -xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstra
    ct_expand.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schema
    tron-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_i
    nclude.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematro
    n-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schema
    tron_message.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-sch
    ematron-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schema
    tron_skeleton_for_xslt1.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\
    xsl\iso-schematron-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_f
    or_xslt1.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schemat
    ron-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt
     -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
        running build_ext
        building 'lxml.etree' extension
        creating build\temp.win32-2.7
        creating build\temp.win32-2.7\Release
        creating build\temp.win32-2.7\Release\src
        creating build\temp.win32-2.7\Release\src\lxml
        C:\Users\frederic\AppData\Local\Programs\Common\Microsoft\Visual C++ for Pyt
    hon\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Isrc\lxml\includes -
    Ic:\python27\include -Ic:\python27\PC /Tcsrc\lxml\lxml.etree.c /Fobuild\temp.win
    32-2.7\Release\src\lxml\lxml.etree.obj -w
        cl : Command line warning D9025 : overriding '/W3' with '/w'
        lxml.etree.c
        src\lxml\includes\etree_defs.h(14) : fatal error C1083: Cannot open include
    file: 'libxml/xmlversion.h': No such file or directory
        Compile failed: command 'C:\\Users\\frederic\\AppData\\Local\\Programs\\Comm
    on\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit sta
    tus 2
        creating users
        creating users\frederic
        creating users\frederic\appdata
        creating users\frederic\appdata\local
        creating users\frederic\appdata\local\temp
        C:\Users\frederic\AppData\Local\Programs\Common\Microsoft\Visual C++ for Pyt
    hon\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I/usr/include/libxml
    2 /Tcc:\users\frederic\appdata\local\temp\xmlXPathInitaop5yv.c /Fousers\frederic
    \appdata\local\temp\xmlXPathInitaop5yv.obj
        xmlXPathInitaop5yv.c
        c:\users\frederic\appdata\local\temp\xmlXPathInitaop5yv.c(1) : fatal error C
    1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
        ****************************************************************************
    *****
        Could not find function xmlCheckVersion in library libxml2. Is libxml2 insta
    lled?
        ****************************************************************************
    *****
        error: command 'C:\\Users\\frederic\\AppData\\Local\\Programs\\Common\\Micro
    soft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
     
        ----------------------------------------
    Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\
    \users\\frederic\\appdata\\local\\temp\\pip-build-hd8ga4\\lxml\\setup.py';exec(c
    ompile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), _
    _file__, 'exec'))" install --record c:\users\frederic\appdata\local\temp\pip-1to
    e5z-record\install-record.txt --single-version-externally-managed --compile" fai
    led with error code 1 in c:\users\frederic\appdata\local\temp\pip-build-hd8ga4\l
    xml\
     
    C:\Users\frederic>pip install lxml
    Collecting lxml
      Using cached lxml-3.6.4.tar.gz
    Installing collected packages: lxml
      Running setup.py install for lxml ... error
        Complete output from command c:\python27\python.exe -u -c "import setuptools
    , tokenize;__file__='c:\\users\\frederic\\appdata\\local\\temp\\pip-build-xz2vd1
    \\lxml\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().
    replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\frederic\ap
    pdata\local\temp\pip-wl3xrm-record\install-record.txt --single-version-externall
    y-managed --compile:
        Building lxml version 3.6.4.
        Building without Cython.
        ERROR: 'xslt-config' n'est pas reconnu en tant que commande interne
        ou externe, un programme ex'cutable ou un fichier de commandes.
     
        ** make sure the development packages of libxml2 and libxslt are installed *
    *
     
        Using build configuration of libxslt
        running install
        running build
        running build_py
        creating build
        creating build\lib.win32-2.7
        creating build\lib.win32-2.7\lxml
        copying src\lxml\builder.py -> build\lib.win32-2.7\lxml
        copying src\lxml\cssselect.py -> build\lib.win32-2.7\lxml
        copying src\lxml\doctestcompare.py -> build\lib.win32-2.7\lxml
        copying src\lxml\ElementInclude.py -> build\lib.win32-2.7\lxml
        copying src\lxml\pyclasslookup.py -> build\lib.win32-2.7\lxml
        copying src\lxml\sax.py -> build\lib.win32-2.7\lxml
        copying src\lxml\usedoctest.py -> build\lib.win32-2.7\lxml
        copying src\lxml\_elementpath.py -> build\lib.win32-2.7\lxml
        copying src\lxml\__init__.py -> build\lib.win32-2.7\lxml
        creating build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\__init__.py -> build\lib.win32-2.7\lxml\includes
        creating build\lib.win32-2.7\lxml\html
        copying src\lxml\html\builder.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\clean.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\defs.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\diff.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\ElementSoup.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\formfill.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\html5parser.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\soupparser.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\usedoctest.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\_diffcommand.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\_html5builder.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\_setmixin.py -> build\lib.win32-2.7\lxml\html
        copying src\lxml\html\__init__.py -> build\lib.win32-2.7\lxml\html
        creating build\lib.win32-2.7\lxml\isoschematron
        copying src\lxml\isoschematron\__init__.py -> build\lib.win32-2.7\lxml\isosc
    hematron
        copying src\lxml\lxml.etree.h -> build\lib.win32-2.7\lxml
        copying src\lxml\lxml.etree_api.h -> build\lib.win32-2.7\lxml
        copying src\lxml\includes\c14n.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\config.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\dtdvalid.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\etreepublic.pxd -> build\lib.win32-2.7\lxml\includ
    es
        copying src\lxml\includes\htmlparser.pxd -> build\lib.win32-2.7\lxml\include
    s
        copying src\lxml\includes\relaxng.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\schematron.pxd -> build\lib.win32-2.7\lxml\include
    s
        copying src\lxml\includes\tree.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\uri.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\xinclude.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\xmlerror.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\xmlparser.pxd -> build\lib.win32-2.7\lxml\includes
     
        copying src\lxml\includes\xmlschema.pxd -> build\lib.win32-2.7\lxml\includes
     
        copying src\lxml\includes\xpath.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\xslt.pxd -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\etree_defs.h -> build\lib.win32-2.7\lxml\includes
        copying src\lxml\includes\lxml-version.h -> build\lib.win32-2.7\lxml\include
    s
        creating build\lib.win32-2.7\lxml\isoschematron\resources
        creating build\lib.win32-2.7\lxml\isoschematron\resources\rng
        copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib
    .win32-2.7\lxml\isoschematron\resources\rng
        creating build\lib.win32-2.7\lxml\isoschematron\resources\xsl
        copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win
    32-2.7\lxml\isoschematron\resources\xsl
        copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win
    32-2.7\lxml\isoschematron\resources\xsl
        creating build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron
    -xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstra
    ct_expand.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schema
    tron-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_i
    nclude.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematro
    n-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schema
    tron_message.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-sch
    ematron-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schema
    tron_skeleton_for_xslt1.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\
    xsl\iso-schematron-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_f
    or_xslt1.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schemat
    ron-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt
     -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
        running build_ext
        building 'lxml.etree' extension
        creating build\temp.win32-2.7
        creating build\temp.win32-2.7\Release
        creating build\temp.win32-2.7\Release\src
        creating build\temp.win32-2.7\Release\src\lxml
        C:\Users\frederic\AppData\Local\Programs\Common\Microsoft\Visual C++ for Pyt
    hon\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Isrc\lxml\includes -
    Ic:\python27\include -Ic:\python27\PC /Tcsrc\lxml\lxml.etree.c /Fobuild\temp.win
    32-2.7\Release\src\lxml\lxml.etree.obj -w
        cl : Command line warning D9025 : overriding '/W3' with '/w'
        lxml.etree.c
        src\lxml\includes\etree_defs.h(14) : fatal error C1083: Cannot open include
    file: 'libxml/xmlversion.h': No such file or directory
        Compile failed: command 'C:\\Users\\frederic\\AppData\\Local\\Programs\\Comm
    on\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit sta
    tus 2
        creating users
        creating users\frederic
        creating users\frederic\appdata
        creating users\frederic\appdata\local
        creating users\frederic\appdata\local\temp
        C:\Users\frederic\AppData\Local\Programs\Common\Microsoft\Visual C++ for Pyt
    hon\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I/usr/include/libxml
    2 /Tcc:\users\frederic\appdata\local\temp\xmlXPathInit_gukys.c /Fousers\frederic
    \appdata\local\temp\xmlXPathInit_gukys.obj
        xmlXPathInit_gukys.c
        c:\users\frederic\appdata\local\temp\xmlXPathInit_gukys.c(1) : fatal error C
    1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
        ****************************************************************************
    *****
        Could not find function xmlCheckVersion in library libxml2. Is libxml2 insta
    lled?
        ****************************************************************************
    *****
        error: command 'C:\\Users\\frederic\\AppData\\Local\\Programs\\Common\\Micro
    soft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
     
        ----------------------------------------
    Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\
    \users\\frederic\\appdata\\local\\temp\\pip-build-xz2vd1\\lxml\\setup.py';exec(c
    ompile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), _
    _file__, 'exec'))" install --record c:\users\frederic\appdata\local\temp\pip-wl3
    xrm-record\install-record.txt --single-version-externally-managed --compile" fai
    led with error code 1 in c:\users\frederic\appdata\local\temp\pip-build-xz2vd1\l
    xml\
     
    C:\Users\frederic>
    C'est pour le newbie que je suis un pb mais ou ?
    Merci de votre aide

  2. #2
    Expert éminent sénior
    Homme Profil pro
    Architecte technique retraité
    Inscrit en
    Juin 2008
    Messages
    21 283
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Manche (Basse Normandie)

    Informations professionnelles :
    Activité : Architecte technique retraité
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2008
    Messages : 21 283
    Points : 36 770
    Points
    36 770
    Par défaut
    Salut,

    Il suffit de se rappeler de ce "warning":
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
        ** make sure the development packages of libxml2 and libxslt are installed **
    lorsque vous voyez:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
        src\lxml\includes\etree_defs.h(14) : fatal error C1083: Cannot open include
    file: 'libxml/xmlversion.h': No such file or directory
    Comme vous avez lu le document qui explique comment compiler lxml depuis les sources, et qui raconte:
    If you get errors about missing header files (e.g. Python.h or libxml/xmlversion.h) then you need to make sure the development packages of Python, libxml2 and libxslt are properly installed.
    vous saviez déjà avoir oublié quelque chose..

    Avant de vous lancer dans la compilation depuis les sources, vous avez aussi lu dans le document qui explique comment l'installer sur Windows:
    For MS Windows, recent lxml releases feature community donated binary distributions, although you might still want to take a look at the related FAQ entry. If you fail to build lxml on your MS Windows system from the signed and tested sources that we release, consider using the binary builds from PyPI or the unofficial Windows binaries that Christoph Gohlke generously provides.
    i.e. la possibilité de l'installer à partir de binaires déjà compilés pour vous.

    Ceci dit, vous avez déjà une bibliothèque xml inclue en standard: xml.etree.ElementTree et vous n'avez besoin de lxml que pour des fonctionnalités plutôt exotiques pour le débutant.

    - W
    Architectures post-modernes.
    Python sur DVP c'est aussi des FAQs, des cours et tutoriels

  3. #3
    Membre actif
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Octobre 2013
    Messages
    156
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Santé

    Informations forums :
    Inscription : Octobre 2013
    Messages : 156
    Points : 218
    Points
    218
    Par défaut
    Salut,

    Je suis d'accord avec wiztricks, mais si tu tiens tous de même à utiliser lxml, passe plutôt par un .whl, en général ça résout pas mal de problème
    Disponible ici : http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    pip install some-package.whl

  4. #4
    Expert éminent sénior
    Homme Profil pro
    Architecte technique retraité
    Inscrit en
    Juin 2008
    Messages
    21 283
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Manche (Basse Normandie)

    Informations professionnelles :
    Activité : Architecte technique retraité
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2008
    Messages : 21 283
    Points : 36 770
    Points
    36 770
    Par défaut
    Citation Envoyé par IPreferCSharp Voir le message
    Je suis d'accord avec wiztricks, mais si tu tiens tous de même à utiliser lxml, passe plutôt par un .whl, en général ça résout pas mal de problème
    Disponible ici : http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
    Un wheel n'est qu'autre qu'un format qui permet de packager les binaires d'une bibliothèque pour les rendre comestibles par la commande/utilitaire "pip".
    La documentation de lxml suggère déjà d'aller récupérer ces binaires chez Gohlke.... qui, depuis quelques temps déjà, ne produit de binaires que sous ce format.
    Pour Python2, il faudra quand même au préalable mettre à jour pip, installer wheel,...

    - W
    Architectures post-modernes.
    Python sur DVP c'est aussi des FAQs, des cours et tutoriels

Discussions similaires

  1. installer le module lxml sous unix
    Par Jasmine80 dans le forum Déploiement/Installation
    Réponses: 4
    Dernier message: 25/06/2015, 17h39
  2. probleme installation lxml ubuntu help please
    Par napoleon59 dans le forum Général Python
    Réponses: 9
    Dernier message: 25/05/2014, 21h10
  3. Nouveaux probleme sur l'installation LXML
    Par Nono Sto dans le forum Général Python
    Réponses: 0
    Dernier message: 14/05/2010, 05h16
  4. Problème d'installation oracle 8.1.7 sous NT
    Par Anonymous dans le forum Installation
    Réponses: 7
    Dernier message: 02/08/2002, 14h18
  5. Réponses: 7
    Dernier message: 01/05/2002, 20h23

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