web-dev-qa-db-fra.com

installation lxml sur Windows 7 en utilisant pip et python 2.7

Lorsque j'essaie de mettre à niveau lxml à l'aide de pip sur ma machine Windows 7, le journal est imprimé ci-dessous.

Lorsque je désinstalle et essaie d'installer à partir de zéro, j'obtiens les mêmes erreurs. Des idées?

Téléchargement/décompression de lxml depuis https://pypi.python.org/packages/source/l/lxml/l xml-3.2.4.tar.gz # md5 = cc363499060f615aca1ec8dcc04df331 Téléchargement de lxml-3.2.4 .tar.gz (3,3 Mo): 3,3 Mo téléchargés en cours d'exécution setup.py Egg_info pour le package lxml Building lxml version 3.2.4. Construire sans Cython. ERREUR: Nazwa 'xslt-config' nie jest rozpoznawana jako polecenie wewnętrzne l ub zewnętrzne, programme wykonywalny lub plik wsadowy.

** make sure the development packages of libxml2 and libxslt are installed *

*

Using build configuration of libxslt
D:\software\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distrib ution option: 'bugtrack_url'
  warnings.warn(msg)

warning: no files found matching 'lxml.etree.c' under directory 'src\lxml'
warning: no files found matching 'lxml.objectify.c' under directory 'src\lxm l'
warning: no files found matching 'lxml.etree.h' under directory 'src\lxml'
warning: no files found matching 'lxml.etree_api.h' under directory 'src\lxm l'
warning: no files found matching 'etree_defs.h' under directory 'src\lxml'
warning: no files found matching '*.txt' under directory 'src\lxml\tests'
warning: no files found matching 'pubkey.asc' under directory 'doc'
warning: no files found matching 'tagpython*.png' under directory 'doc'
warning: no files found matching 'Makefile' under directory 'doc' Installing collected packages: lxml   Found existing installation:

lxml 2.3 Désinstallation de lxml: lxml a été correctement désinstallé. Lancez setup.py install pour lxml Building lxml version 3.2.4. Construire sans Cython. ERREUR: Nazwa 'xslt-config' nie jest rozpoznawana jako polecenie wewnętrzne l ub zewnętrzne, programme wykonywalny lub plik wsadowy.

** make sure the development packages of libxml2 and libxslt are installed *

*

Using build configuration of libxslt
building 'lxml.etree' extension
D:\software\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3  /GS- /DNDEBUG

-Ic:\users\x\appdata\local\temp\pip_build_x\lxml\src\lxml\inc ludes -ID:\software\Python27\include -ID:\software\Python27\PC/Tcsrc\lxml\lxml. etree.c /Fobuild\temp.win32-2.7\Release\src\lxml\lxml.etree.obj lxml.etree.cc:\users\x\appdata\local\temp\pip_build_x\lxml\src\lxml\includes\etree_d efs.h (9): erreur fatale C1083: impossible d'ouvrir le fichier inclus: 'libxml/xmlversion.h': aucun fichier ou répertoire D:\software\Python27\lib\distutils\dist.py: 267: UserWarning: Option de distribution inconnue: 'bugtrack_url' warnings.warn (msg) error: command '"D:\software\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' fai led with exit status 2 Sortie complète de la commande D:\software\Python27\python.exe -c "import setu ptools; fichier = 'c:\users\x\appdata\local\temp\pip_build_x\lxml\setu p.py '; exec (compiler (ouvrir (( fichier ). lire (). remplacer ('\r\n ','\n '), fichier ,' exec ')) "install --record c:\users\x\appdata\local\temp\pip- pyyuss-record\install-r ecord.txt --single-version-externally-managed: Construction de la version 3.2.4 de lxml.

Construire sans Cython.

ERREUR: Nazwa 'xslt-config' nie jest rozpoznawana jako polecenie wewnętrzne lub z ewnętrzne,

programme wykonywalny lub plik wsadowy.

** assurez-vous que les packages de développement de libxml2 et libxslt sont installés **

Utilisation de la configuration de construction de libxslt

exécution de l'installation

exécution en cours de construction

exécution de build_py

création de build

création de build\lib.win32-2.7

création de build\lib.win32-2.7\lxml

copie de src\lxml\builder.py -> build\lib.win32-2.7\lxml

copie de src\lxml\cssselect.py -> build\lib.win32-2.7\lxml

copie de src\lxml\doctestcompare.py -> build\lib.win32-2.7\lxml

copie de src\lxml\ElementInclude.py -> build\lib.win32-2.7\lxml

copie de src\lxml\pyclasslookup.py -> build\lib.win32-2.7\lxml

copie de src\lxml\sax.py -> build\lib.win32-2.7\lxml

copie de src\lxml\usedoctest.py -> build\lib.win32-2.7\lxml

copie de src\lxml_elementpath.py -> build\lib.win32-2.7\lxml

copie de src\lxml__init __. py -> build\lib.win32-2.7\lxml

création de build\lib.win32-2.7\lxml\comprend

copie de src\lxml\includes__init __. py -> build\lib.win32-2.7\lxml\includes

création de build\lib.win32-2.7\lxml\html

copie de src\lxml\html\builder.py -> build\lib.win32-2.7\lxml\html

copie de src\lxml\html\clean.py -> build\lib.win32-2.7\lxml\html

copie de src\lxml\html\defs.py -> build\lib.win32-2.7\lxml\html

copie de src\lxml\html\diff.py -> build\lib.win32-2.7\lxml\html

copie de src\lxml\html\ElementSoup.py -> build\lib.win32-2.7\lxml\html

copie de src\lxml\html\formfill.py -> build\lib.win32-2.7\lxml\html

copie de src\lxml\html\html5parser.py -> build\lib.win32-2.7\lxml\html

copie de src\lxml\html\soupparser.py -> build\lib.win32-2.7\lxml\html

copie de src\lxml\html\usedoctest.py -> build\lib.win32-2.7\lxml\html

copie de src\lxml\html_diffcommand.py -> build\lib.win32-2.7\lxml\html

copie de src\lxml\html_html5builder.py -> build\lib.win32-2.7\lxml\html

copie de src\lxml\html_setmixin.py -> build\lib.win32-2.7\lxml\html

copie de src\lxml\html__init __. py -> build\lib.win32-2.7\lxml\html

création de build\lib.win32-2.7\lxml\isoschematron

copie de src\lxml\isoschematron__init __. py -> build\lib.win32-2.7\lxml\isoschema tron

copie de src\lxml\lxml.etree.h -> build\lib.win32-2.7\lxml

copie de src\lxml\lxml.etree_api.h -> build\lib.win32-2.7\lxml

copie de src\lxml\includes\c14n.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\config.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\dtdvalid.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\etreepublic.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\htmlparser.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\relaxng.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\schematron.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\tree.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\uri.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\xinclude.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\xmlerror.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\xmlparser.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\xmlschema.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\xpath.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\xslt.pxd -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\etree_defs.h -> build\lib.win32-2.7\lxml\includes

copie de src\lxml\includes\lxml-version.h -> build\lib.win32-2.7\lxml\includes

création de build\lib.win32-2.7\lxml\isoschematron\resources

création de build\lib.win32-2.7\lxml\isoschematron\resources\rng

copie de src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win 32-2.7\lxml\isoschematron\resources\rng

création de build\lib.win32-2.7\lxml\isoschematron\resources\xsl

copie src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win32-2 .7\lxml\isoschematron\resources\xsl

copie de src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win32-2 .7\lxml\isoschematron\resources\xsl

création de build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xsl t1

copie src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_e xpand.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron -xslt1

copie src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_inclu de.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xs lt1

copie src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron _message.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schemat ron-xslt1

copie src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron _skeleton_for_xslt1.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1

copie src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_x slt1.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron- xslt1

copie de src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1

exécution de build_ext

construction de l'extension 'lxml.etree'

création de build\temp.win32-2.7

création de build\temp.win32-2.7\Release

création de build\temp.win32-2.7\Release\src

création de build\temp.win32-2.7\Release\src\lxml

D:\software\Microsoft Visual Studio 9.0\VC\BIN\cl.exe/c/nologo/Ox/MD/W3/GS -/DNDEBUG -Ic:\users\x\appdata\local\temp\pip_build_x\lxml\src\lxml\include s -ID:\software\Python27\include -ID:\software\Python27\PC /Tcsrc\lxml\lxml.etre ec /Fobuild\temp.win32-2.7\Release\src\lxml\lxml. etree.obj

lxml.etree.c

c:\users\x\appdata\local\temp\pip_build_x\lxml\src\lxml\includes\etree_defs. h(9): erreur fatale C1083: impossible d'ouvrir le fichier include: 'libxml/xmlversion.h': aucun fichier ou répertoire su ch

D:\software\Python27\lib\distutils\dist.py: 267: UserWarning: option de distribution inconnue: 'bugtrack_url'

warnings.warn (msg)

erreur: la commande '"D:\software\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' a échoué avec l'état de sortie 2

---------------------------------------- Annulation de la désinstallation de lxml Nettoyage ... Commande D:\software\Python27\python.exe -c "import setuptools; file = 'c:\user s\x\appdata\local\temp\pip_build_x\lxml\setup.py '; exec (compile (open (_ file _). read (). replace ('\r\n ','\n '), fichier , 'exec')) "install --record c:\u sers\x\appdata\local\temp\pip-pyyuss-record\install-record.txt - échec de la gestion unique vers l'extérieur n avec le code d'erreur 1 dans c:\users\x\appdata\local\temp\pip_build_x\lxml Traceback (dernier appel le plus récent): fichier "D:\software\Python27\Scripts\pip-script.py ", ligne 9, dans load_entry_point ('pip == 1.4.1', 'console_scripts', 'pip') () Fichier" D:\software\Python27\lib\site -packages\pip__init __. py ", ligne 148, dans ma en retour command.main (args [1:], options) Fichier" D:\software\Python27\lib\site-packages\pip\basecommand.py ", ligne 169, dans le texte principal = '\ n'.join (complete_log) UnicodeDecodeError: le codec' ascii 'ne peut pas décoder l'octet 0xa9 en position 72: ordinal hors de portée (128)

22
user2091046

Si un compilateur est installé (testé avec VS C++ 2008 Express), vous pouvez simplement exécuter:

set STATICBUILD=true && pip install lxml

Comme indiqué dans la documentation , la définition de STATICBUILD indiquera au programme d'installation de lxml de télécharger automatiquement toutes ses dépendances binaires avant la génération.

Ces dépendances binaires lxml, qui devraient être présentes lors de l'installation depuis la source, seront téléchargées et construites ensemble par le programme d'installation:

  • libxslt
  • iconv
  • zlib
  • libxml2

Bonus : Il fonctionne également à l'intérieur d'un virtualenv.

41
Fernando Macedo

Cette question est plus ancienne mais apparaît toujours dans Google. J'ai essayé les autres réponses à cette question et elles ne fonctionnaient pas pour une raison ou une autre et je ne voulais pas traquer et installer toutes les dépendances à compiler sur Windows.

J'ai remarqué sur pypi que certaines versions de lxml proposent des roues Windows et d'autres pas.

La solution la plus simple pour moi a donc été de spécifier une version qui ... ... pip install lxml==3.6.0 puisque la version 3.6.0 offrait une roue alors que la version 3.6.4 plus récente ne le proposait pas

25
user319862

Pour votre problème, il existe une solution sur une seule ligne. D'une manière ou d'une autre, cela fonctionne signifie que vous effectuez un raclage à faible niveau, cela fonctionnera.

Après 8 heures de recherche, j'ai trouvé que ça ne fonctionnait plus

pip install lxml==3.6.0

Rien d'autre n'est requis.

Toutes les choses ci-dessus s'appliquent à Windows.

Commentez si un autre type de problème persiste, heureux de vous aider.

Voici mon succès après 8 heures: Here is my success after 8 hours

16
TheExorcist

Vous pouvez faire les étapes de réponse de Flak , ou vous pouvez simplement télécharger le programme d'installation de Windows , double-cliquez pour le lancer et soyez sur votre chemin.

8
Burhan Khalid

Ces instructions concernent Windows7 ou Windows8 avec Python2.7 .

Cependant , ils devraient fonctionner pour différentes versions car les versions de python et autres prérequis respectifs changent/évoluent:

  1. Installer Python2.7:
    1. Téléchargez la dernière version de Python2.7 (actuellement 2.7.6) à partir de la page des téléchargements ICI
      • Lien direct pour l'installateur Win32 MSI -> ICI
      • Lien direct pour l'installateur Win64 MSI -> ICI
    2. Exécutez simplement le MSI pour installer python. Il s'enregistrera dans le registre et apparaîtra dans Ajout/Suppression de programmes.
    3. REMARQUE: mes instructions qui suivent supposent que vous choisissez d'installer python sur le chemin par défaut de C:\python27\ lorsqu'on lui a demandé au cours de l'assistant d'installation Python Installation
  2. Ajouter le C:\python27\ et C:\python27\scripts dossiers dans le chemin système en ajoutant ces répertoires à la variable d'environnement PATH à partir du Panneau de configuration> Système> Lien Paramètres système avancés (onglet Avancé)> Variables d'environnement (bouton ) .
  3. (FACULTATIF) Installer OpenSSL:
    1. Téléchargez la page Win32 OpenSSL depuis ICI pour votre version de l'architecture Windows et PC
    2. Télécharger Redistributables Visual C++ 2008 pour votre version de l'architecture Windows et PC
    3. Téléchargez OpenSSL pour votre version de Windows et de l'architecture (la version régulière, pas la version légère)
    4. Ajoutez le répertoire suivant (en fonction de votre architecture) (ou là où vous vous êtes installé) à votre PATH, de la même manière que vous avez ajouté C:\python27 et C:\python27\scripts au dessus:
      • 32 bits: c:\openssl-win32\bin
      • 64 bits: c:\openssl-win64\bin
  4. Installer Setuptools (get-pip.py devrait installer Setuptools pour vous), mais au cas où ...
    1. Télécharger ez_setup.py ICI et enregistrez-le dans C:\python27\scripts
    2. Exécutez C:\python27\scripts> python ez_setup.py
  5. Installer [~ # ~] pip [~ # ~]
    1. Télécharger get-pip.py de ICI et enregistrez-le dans C:\python27\scripts
    2. Exécutez C:\python27\scripts> python get-pip.py
  6. Installer [~ # ~] lxml [~ # ~]
    1. Télécharger LXML 3.3.3 de ICI pour votre version de l'architecture Windows et PC
    2. Exécutez le fichier EXE
4
Flak DiNenno

La FAQ sur le site Web lxml pointe vers un site qui a gentiment créé des distributions binaires pour Windows:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

la roue peut être installée à l'aide de pip.

https://pip.pypa.io/en/latest/user_guide/#installing-from-wheels

pip install lxml‑3.5.0‑cp27‑none‑win32.whl
3
David Blaney

Vous devez installer libxml, libxslt, libiconv et zlib dans votre environnement virtuel. Vous avez également besoin de VS 2008, parce que python 2.7 est compilé avec cette version. J'ai écrit une explication plus détaillée ici http://www.laurivan.com/install-lxml-on -windows-on-a-virtualenv /

2
Laur Ivan

J'ai installé (VS C++ 2014 Express) L'installation directe de pip a échoué mais après l'ajout des éléments suivants empruntés à Fernando Macedo set STATICBUILD = true && pip install lxml cela a fonctionné pour moi dans virtualenv sur windows 10 avec Python 3.5.2, lxml 3.6.4

    -tag cp35:
      Building lxml version 3.6.4.
      Building without Cython.
      ERROR: b"'xslt-config' is not recognized as an internal or external           command,\r\noperable program or batch file.\r\n"
      ** make sure the development packages of libxml2 and libxslt are installed **

       Using build configuration of libxslt
       running bdist_wheel
       running build
       running build_py
       creating build
       creating build\lib.win32-3.5
       creating build\lib.win32-3.5\lxml
       copying src\lxml\builder.py -> build\lib.win32-3.5\lxml
       copying src\lxml\cssselect.py -> build\lib.win32-3.5\lxml
       copying src\lxml\doctestcompare.py -> build\lib.win32-3.5\lxml
       copying src\lxml\ElementInclude.py -> build\lib.win32-3.5\lxml
       copying src\lxml\pyclasslookup.py -> build\lib.win32-3.5\lxml
       copying src\lxml\sax.py -> build\lib.win32-3.5\lxml
       copying src\lxml\usedoctest.py -> build\lib.win32-3.5\lxml
       copying src\lxml\_elementpath.py -> build\lib.win32-3.5\lxml
       copying src\lxml\__init__.py -> build\lib.win32-3.5\lxml
       creating build\lib.win32-3.5\lxml\includes
     copying src\lxml\includes\__init__.py -> build\lib.win32-3.5\lxml\includes
     creating build\lib.win32-3.5\lxml\html
     copying src\lxml\html\builder.py -> build\lib.win32-3.5\lxml\html
     copying src\lxml\html\clean.py -> build\lib.win32-3.5\lxml\html
     copying src\lxml\html\defs.py -> build\lib.win32-3.5\lxml\html
     copying src\lxml\html\diff.py -> build\lib.win32-3.5\lxml\html
     copying src\lxml\html\ElementSoup.py -> build\lib.win32-3.5\lxml\html
     copying src\lxml\html\formfill.py -> build\lib.win32-3.5\lxml\html
     copying src\lxml\html\html5parser.py -> build\lib.win32-3.5\lxml\html
     copying src\lxml\html\soupparser.py -> build\lib.win32-3.5\lxml\html
     copying src\lxml\html\usedoctest.py -> build\lib.win32-3.5\lxml\html
     copying src\lxml\html\_diffcommand.py -> build\lib.win32-3.5\lxml\html
     copying src\lxml\html\_html5builder.py -> build\lib.win32-3.5\lxml\html
     copying src\lxml\html\_setmixin.py -> build\lib.win32-3.5\lxml\html
     copying src\lxml\html\__init__.py -> build\lib.win32-3.5\lxml\html
     creating build\lib.win32-3.5\lxml\isoschematron
     copying src\lxml\isoschematron\__init__.py -> build\lib.win32-     3.5\lxml\isoschematron
     copying src\lxml\lxml.etree.h -> build\lib.win32-3.5\lxml
     copying src\lxml\lxml.etree_api.h -> build\lib.win32-3.5\lxml
     copying src\lxml\includes\c14n.pxd -> build\lib.win32-3.5\lxml\includes
     copying src\lxml\includes\config.pxd -> build\lib.win32-3.5\lxml\includes
     copying src\lxml\includes\dtdvalid.pxd -> build\lib.win32-3.5\lxml\includes
     copying src\lxml\includes\etreepublic.pxd -> build\lib.win32-3.5\lxml\includes
     copying src\lxml\includes\htmlparser.pxd -> build\lib.win32-3.5\lxml\includes
     copying src\lxml\includes\relaxng.pxd -> build\lib.win32-3.5\lxml\includes
     copying src\lxml\includes\schematron.pxd -> build\lib.win32-3.5\lxml\includes
  copying src\lxml\includes\tree.pxd -> build\lib.win32-3.5\lxml\includes
  copying src\lxml\includes\uri.pxd -> build\lib.win32-3.5\lxml\includes
  copying src\lxml\includes\xinclude.pxd -> build\lib.win32-3.5\lxml\includes
  copying src\lxml\includes\xmlerror.pxd -> build\lib.win32-3.5\lxml\includes
  copying src\lxml\includes\xmlparser.pxd -> build\lib.win32-3.5\lxml\includes
  copying src\lxml\includes\xmlschema.pxd -> build\lib.win32-3.5\lxml\includes
  copying src\lxml\includes\xpath.pxd -> build\lib.win32-3.5\lxml\includes
  copying src\lxml\includes\xslt.pxd -> build\lib.win32-3.5\lxml\includes
  copying src\lxml\includes\etree_defs.h -> build\lib.win32-3.5\lxml\includes
  copying src\lxml\includes\lxml-version.h -> build\lib.win32-3.5\lxml\includes
  creating build\lib.win32-3.5\lxml\isoschematron\resources
  creating build\lib.win32-3.5\lxml\isoschematron\resources\rng
  copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win32-3.5\lxml\isoschematron\resources\rng
  creating build\lib.win32-3.5\lxml\isoschematron\resources\xsl
  copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl
  copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl
  creating build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  running build_ext
  building 'lxml.etree' extension
  creating build\temp.win32-3.5
  creating build\temp.win32-3.5\Release
  creating build\temp.win32-3.5\Release\src
  creating build\temp.win32-3.5\Release\src\lxml
  C:\Program Files\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc\lxml\includes "-Ic:\program files\python35-32\include" "-Ic:\program files\python35-32\include" "-IC:\Program Files\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\winrt" /Tcsrc\lxml\lxml.etree.c /Fobuild\temp.win32-3.5\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:\\Program Files\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2
  creating Users
  creating Users\DDSHARMA
  creating Users\DDSHARMA\AppData
  creating Users\DDSHARMA\AppData\Local
  creating Users\DDSHARMA\AppData\Local\Temp
  C:\Program Files\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\winrt" /TcC:\Users\DDSHARMA\AppData\Local\Temp\xmlXPathInitsaig9hq_.c /FoUsers\DDSHARMA\AppData\Local\Temp\xmlXPathInitsaig9hq_.obj
  xmlXPathInitsaig9hq_.c
  C:\Users\DDSHARMA\AppData\Local\Temp\xmlXPathInitsaig9hq_.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
  *********************************************************************************
  Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
  *********************************************************************************
  error: command 'C:\\Program Files\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2

  ----------------------------------------
  Failed building wheel for lxml
  Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: lxml
  Running setup.py install for lxml ... error
    Complete output from command c:\users\ddsharma\documents\pymote_env\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\DDSHARMA\\AppData\\Local\\Temp\\pip-build-gtry8727\\lxml\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\DDSHARMA\AppData\Local\Temp\pip-waqsvkju-record\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\ddsharma\documents\pymote_env\include\site\python3.5\lxml:
    Building lxml version 3.6.4.
    Building without Cython.
    ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
    ** 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-3.5
    creating build\lib.win32-3.5\lxml
    copying src\lxml\builder.py -> build\lib.win32-3.5\lxml
    copying src\lxml\cssselect.py -> build\lib.win32-3.5\lxml
    copying src\lxml\doctestcompare.py -> build\lib.win32-3.5\lxml
    copying src\lxml\ElementInclude.py -> build\lib.win32-3.5\lxml
    copying src\lxml\pyclasslookup.py -> build\lib.win32-3.5\lxml
    copying src\lxml\sax.py -> build\lib.win32-3.5\lxml
    copying src\lxml\usedoctest.py -> build\lib.win32-3.5\lxml
    copying src\lxml\_elementpath.py -> build\lib.win32-3.5\lxml
    copying src\lxml\__init__.py -> build\lib.win32-3.5\lxml
    creating build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\__init__.py -> build\lib.win32-3.5\lxml\includes
    creating build\lib.win32-3.5\lxml\html
    copying src\lxml\html\builder.py -> build\lib.win32-3.5\lxml\html
    copying src\lxml\html\clean.py -> build\lib.win32-3.5\lxml\html
    copying src\lxml\html\defs.py -> build\lib.win32-3.5\lxml\html
    copying src\lxml\html\diff.py -> build\lib.win32-3.5\lxml\html
    copying src\lxml\html\ElementSoup.py -> build\lib.win32-3.5\lxml\html
    copying src\lxml\html\formfill.py -> build\lib.win32-3.5\lxml\html
    copying src\lxml\html\html5parser.py -> build\lib.win32-3.5\lxml\html
    copying src\lxml\html\soupparser.py -> build\lib.win32-3.5\lxml\html
    copying src\lxml\html\usedoctest.py -> build\lib.win32-3.5\lxml\html
    copying src\lxml\html\_diffcommand.py -> build\lib.win32-3.5\lxml\html
    copying src\lxml\html\_html5builder.py -> build\lib.win32-3.5\lxml\html
    copying src\lxml\html\_setmixin.py -> build\lib.win32-3.5\lxml\html
    copying src\lxml\html\__init__.py -> build\lib.win32-3.5\lxml\html
    creating build\lib.win32-3.5\lxml\isoschematron
    copying src\lxml\isoschematron\__init__.py -> build\lib.win32-3.5\lxml\isoschematron
    copying src\lxml\lxml.etree.h -> build\lib.win32-3.5\lxml
    copying src\lxml\lxml.etree_api.h -> build\lib.win32-3.5\lxml
    copying src\lxml\includes\c14n.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\config.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\dtdvalid.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\etreepublic.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\htmlparser.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\relaxng.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\schematron.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\tree.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\uri.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\xinclude.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\xmlerror.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\xmlparser.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\xmlschema.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\xpath.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\xslt.pxd -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\etree_defs.h -> build\lib.win32-3.5\lxml\includes
    copying src\lxml\includes\lxml-version.h -> build\lib.win32-3.5\lxml\includes
    creating build\lib.win32-3.5\lxml\isoschematron\resources
    creating build\lib.win32-3.5\lxml\isoschematron\resources\rng
    copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win32-3.5\lxml\isoschematron\resources\rng
    creating build\lib.win32-3.5\lxml\isoschematron\resources\xsl
    copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl
    copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl
    creating build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    running build_ext
    building 'lxml.etree' extension
    creating build\temp.win32-3.5
    creating build\temp.win32-3.5\Release
    creating build\temp.win32-3.5\Release\src
    creating build\temp.win32-3.5\Release\src\lxml
    C:\Program Files\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc\lxml\includes "-Ic:\program files\python35-32\include" "-Ic:\program files\python35-32\include" "-IC:\Program Files\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\winrt" /Tcsrc\lxml\lxml.etree.c /Fobuild\temp.win32-3.5\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:\\Program Files\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2
    C:\Program Files\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files\Windows Kits\10\include\10.0.14393.0\winrt" /TcC:\Users\DDSHARMA\AppData\Local\Temp\xmlXPathInit1y_w6myc.c /FoUsers\DDSHARMA\AppData\Local\Temp\xmlXPathInit1y_w6myc.obj
    xmlXPathInit1y_w6myc.c
    C:\Users\DDSHARMA\AppData\Local\Temp\xmlXPathInit1y_w6myc.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
    *********************************************************************************
    Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
    *********************************************************************************
    error: command 'C:\\Program Files\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2

    ----------------------------------------
Command "c:\users\ddsharma\documents\pymote_env\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\DDSHARMA\\AppData\\Local\\Temp\\pip-build-gtry8727\\lxml\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\DDSHARMA\AppData\Local\Temp\pip-waqsvkju-record\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\ddsharma\documents\pymote_env\include\site\python3.5\lxml" failed with error code 1 in C:\Users\DDSHARMA\AppData\Local\Temp\pip-build-gtry8727\lxml\

(pymote_env) C:\Users\DDSHARMA\Documents\pymote_env>set STATICBUILD=true && pip install lxml
Collecting lxml
  Using cached lxml-3.6.4.tar.gz
Building wheels for collected packages: lxml
  Running setup.py bdist_wheel for lxml ... done
  Stored in directory: C:\Users\DDSHARMA\AppData\Local\pip\Cache\wheels\c6\ad\ad\cd812eeb1e0e179b58d92b1e8bad7accd136f51b5d812fd495
Successfully built lxml
Installing collected packages: lxml
Successfully installed lxml-3.6.4

(pymote_env) C:\Users

\ DDSHARMA\Documents\pymote_env>

1
DD Sharma

suivez simplement les instructions officielles lxml

0
Shajid