所有二进制/鸡蛋lxml软件包下载列表. > lxml 2.3.x没有用于lxml 2.3.3的Windows二进制鸡蛋(2.3.0是2.x.x中的最新版本).没有提供版本号,easy_install将下载最新的资源,但是您没有安装libxml2和libxslt.您可以安装缺少的库,也可以尝试使用2.3,因为Windows有二进制鸡蛋:easy_install lxml==2.3 I'm using python 2.7 on Windows. How come the following error occurs when I try to install [lxml][1] using [setuptools][2]'s easy_install?C:\>easy_install lxmlSearching for lxmlReading http://pypi.python.org/simple/lxml/Reading http://codespeak.net/lxmlBest match: lxml 2.3.3Downloading http://lxml.de/files/lxml-2.3.3.tgzProcessing lxml-2.3.3.tgzRunning lxml-2.3.3\setup.py -q bdist_egg --dist-dir c:\users\my_user\appdata\local\temp\easy_install-mtrdj2\lxml-2.3.3\egg-dist-tmp-tq8rx4Building lxml version 2.3.3.Building without Cython.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 libxsltwarning: 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'warning: no files found matching 'Makefile' under directory 'doc'error: Setup script exited with error: Unable to find vcvarsall.batDownloading the package and running setup.py install also doesn't help:D:\My Documents\Installs\Dev\Python\lxml\lxml-2.3.3>setup.py installBuilding lxml version 2.3.3.Building without Cython.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 libxsltrunning installrunning bdist_eggrunning egg_infowriting src\lxml.egg-info\PKG-INFOwriting top-level names to src\lxml.egg-info\top_level.txtwriting dependency_links to src\lxml.egg-info\dependency_links.txtreading manifest file 'src\lxml.egg-info\SOURCES.txt'reading manifest template 'MANIFEST.in'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'warning: no files found matching 'Makefile' under directory 'doc'writing manifest file 'src\lxml.egg-info\SOURCES.txt'installing library code to build\bdist.win32\eggrunning install_librunning build_pycreating buildcreating build\lib.win32-2.7creating build\lib.win32-2.7\lxmlcopying src\lxml\builder.py -> build\lib.win32-2.7\lxmlcopying src\lxml\cssselect.py -> build\lib.win32-2.7\lxmlcopying src\lxml\doctestcompare.py -> build\lib.win32-2.7\lxmlcopying src\lxml\ElementInclude.py -> build\lib.win32-2.7\lxmlcopying src\lxml\pyclasslookup.py -> build\lib.win32-2.7\lxmlcopying src\lxml\sax.py -> build\lib.win32-2.7\lxmlcopying src\lxml\usedoctest.py -> build\lib.win32-2.7\lxmlcopying src\lxml\_elementpath.py -> build\lib.win32-2.7\lxmlcopying src\lxml\__init__.py -> build\lib.win32-2.7\lxmlcreating build\lib.win32-2.7\lxml\htmlcopying src\lxml\html\builder.py -> build\lib.win32-2.7\lxml\htmlcopying src\lxml\html\clean.py -> build\lib.win32-2.7\lxml\htmlcopying src\lxml\html\defs.py -> build\lib.win32-2.7\lxml\htmlcopying src\lxml\html\diff.py -> build\lib.win32-2.7\lxml\htmlcopying src\lxml\html\ElementSoup.py -> build\lib.win32-2.7\lxml\htmlcopying src\lxml\html\formfill.py -> build\lib.win32-2.7\lxml\htmlcopying src\lxml\html\html5parser.py -> build\lib.win32-2.7\lxml\htmlcopying src\lxml\html\soupparser.py -> build\lib.win32-2.7\lxml\htmlcopying src\lxml\html\usedoctest.py -> build\lib.win32-2.7\lxml\htmlcopying src\lxml\html\_dictmixin.py -> build\lib.win32-2.7\lxml\htmlcopying src\lxml\html\_diffcommand.py -> build\lib.win32-2.7\lxml\htmlcopying src\lxml\html\_html5builder.py -> build\lib.win32-2.7\lxml\htmlcopying src\lxml\html\_setmixin.py -> build\lib.win32-2.7\lxml\htmlcopying src\lxml\html\__init__.py -> build\lib.win32-2.7\lxml\htmlcreating build\lib.win32-2.7\lxml\isoschematroncopying src\lxml\isoschematron\__init__.py -> build\lib.win32-2.7\lxml\isoschematroncopying src\lxml\etreepublic.pxd -> build\lib.win32-2.7\lxmlcopying src\lxml\tree.pxd -> build\lib.win32-2.7\lxmlcopying src\lxml\etree_defs.h -> build\lib.win32-2.7\lxmlcreating build\lib.win32-2.7\lxml\isoschematron\resourcescreating build\lib.win32-2.7\lxml\isoschematron\resources\rngcopying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win32-2.7\lxml\isoschematron\resources\rngcreating build\lib.win32-2.7\lxml\isoschematron\resources\xslcopying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xslcopying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xslcreating build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1copying 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-xslt1copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1running build_extbuilding 'lxml.etree' extensionerror: Unable to find vcvarsall.bat [1]: http://lxml.de/ [2]: http://pypi.python.org/pypi/setuptools 解决方案 lxml >= 3.x.xdownload one of the MS Windows Installer packageseasy_install "c:/lxml_installer.exe" (credit kobejohn)MS Windows Installer downloads available for lxml 3.3.5a list of all binary/egg lxml package downloads.lxml 2.3.xthere is no windows binary egg for lxml 2.3.3 (2.3.0 is the latest from 2.x.x).without giving a version number easy_install will download the latest sources,but you dont have the libxml2 and libxslt installed.you could install the missing libs or you could try the 2.3 as there are binary eggs for windows:easy_install lxml==2.3 这篇关于Windows上的Python 2.7上的easy_install lxml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!