Installer libxml2 et associés bindings python - Windows

Je suis d'essayer d'installer libxml2 pour que je puisse l'installation des bindings python et l'utilisation à terme lxml.

Cependant, je suis incapable de travailler ici sur terre, je suis censé être décompresser les fichiers.
Je n'ai pas été capable de google avec succès.

Ai-je besoin de Cygwin/MinGW pour que l'installation soit réussie?

Pour le moment j'ai les fichiers à partir de la libxml2.tar.gz et libxslt.tar.gz dans leur répertoire respectif au sein de mon Python dossier. Donc les fichiers qui étaient dans les goudrons en vertu de l'inclure dans Python26\include\libxml2\libxml... et ainsi de suite.

cependant lorsque je lance un easy_install lxml-je recevoir 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 que ce soit serait très utile que j'ai essayé d'obtenir ce que ça va pour plus d'une semaine maintenant 🙁

Grâce

  • J'ai eu le même problème, essayez d'installer lxml 2.2.6 (j'ai aussi essayé 2.2.4 et 2.2.5). M'énerve à être si, j'ai dû recourir à l'aide de la prédéfinis bibliothèque pour 2.2.2 comme le suggère S. Marque ci-dessous. Il serait génial si quelqu'un pouvait compiler la version 2.2.6 pour Python 2.6 (il y a un 2.4 et 2.5 construire, après tout) :/
  • La réponse à cette question: stackoverflow.com/questions/3047542/#5122521
InformationsquelleAutor Rocco | 2009-12-15