Je tente d'installer libxml2 pour pouvoir configurer les liaisons python et éventuellement utiliser lxml.Installation de libxml2 et des liaisons python associées - Windows
Cependant, je suis incapable de travailler ici sur terre, je suis censé décompresser les fichiers. Je n'ai pas réussi à google avec succès.
Ai-je besoin de Cygwin/MinGW pour que l'installation aboutisse? Pour l'instant, j'ai les fichiers de libxml2.tar.gz et libxslt.tar.gz dans leurs répertoires respectifs dans mon dossier Python. Les fichiers qui se trouvaient dans les tars sont inclus dans Python26 \ include \ libxml2 \ libxml ... et ainsi de suite.
mais quand je lance un lxml easy_install je reçois la sortie suivante:
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.2.4
Downloading http://codespeak.net/lxml/lxml-2.2.4.tgz
Processing lxml-2.2.4.tgz
Running lxml-2.2.4\setup.py -q bdist_egg --dist-dir c:\users\rocco\appdata\local
\temp\easy_install-1xwbhy\lxml-2.2.4\egg-dist-tmp-9zwhe4
Building lxml version 2.2.4.
NOTE: Trying to build without Cython, pre-generated 'src/lxml/lxml.etree.c' need
s to be available.
ERROR: 'xslt-config' is not recognized as an internal or external command,
operable program or batch file.
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
warning: no files found matching 'lxml.etree.c' under directory 'src\lxml'
warning: no files found matching 'lxml.objectify.c' under directory 'src\lxml'
warning: no files found matching 'lxml.etree.h' under directory 'src\lxml'
warning: no files found matching 'lxml.etree_api.h' under directory 'src\lxml'
warning: no files found matching 'etree_defs.h' under directory 'src\lxml'
warning: no files found matching 'pubkey.asc' under directory 'doc'
warning: no files found matching 'tagpython*.png' under directory 'doc'
error: Setup script exited with error: Unable to find vcvarsall.bat
Toute aide serait que ce soit très utile comme je l'ai essayé d'obtenir cela va plus d'une semaine maintenant :(
Merci
J'ai le même problème, en essayant d'installer lxml 2.2.6 (j'ai aussi essayé 2.2.4 et 2.2.5). Irrèvement, j'ai dû recourir à la bibliothèque préconfigurée pour 2.2.2 comme suggéré par S. Mark ci-dessous. Ce serait génial si quelqu'un pouvait compiler la version 2.2.6 pour Python 2.6 (il y a une version 2.4 et 2.5, après tout):/ – ropable
Répondez à cette question: http: // stackoverflow.com/questions/3047542/# 5122521 –