lxml for python 3.5

问题描述:

我试图在Windows上安装lxml。我正在运行python 3.5。 我用win安装程序,没有工作。它给了我一个错误,说Python 3.2没有找到。我使用PIP或使用easy_install它试图安装,然后给了我一个错误说lxml for python 3.5

C:\Users\>easy_install lxml 
Searching for lxml 
Reading https://pypi.python.org/simple/lxml/ 
Best match: lxml 3.5.0 
Downloading https://pypi.python.org/packages/source/l/lxml/lxml-3.5.0.tar.gz#md5 
=9f0c5f1eb43ff44d5455dab4b4efbe73 
Processing lxml-3.5.0.tar.gz 
Writing C:\Users\vasisht\AppData\Local\Temp\easy_install-ze62aj3w\lxml-3.5.0\setup.cfg 
Running lxml-3.5.0\setup.py -q bdist_egg --dist-dir  
C:\Users\...\AppData\Local\Temp\easy_install-ze62aj3w\lxml-3.5.0\egg-dist-tmp-cwiu9v46 
Building lxml version 3.5.0. 
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 
error: Setup script exited with error: Unable to find vcvarsall.bat 

我一直在抓我的头和一个答案淘谷歌。请为我揭开一些光。由于

+1

可能的重复[如何指出easy \ _install到vcvarsall.bat?](http://*.com/questions/6551724/how-do-i-point-easy-install-to-vcvarsall-bat) – Arman

+1

看看这些文档:http://lxml.de/installation.html#source-builds-on-ms-windows – chishaku

尝试:

的LXML包在一个仓库使用水银和汞 - git的插件开发Github上。您可以使用检索当前开发者版本:

hg clone git://github.com/lxml/lxml.git lxml 

这将创建一个目录LXML并下载源进去,包括完整的发展历史。不要害怕,下载相当快。您也可以通过Web浏览lxml存储库。

克隆如上所述(或下载源焦油球和解压),然后键入源存储库:

python setup.py build 

(C)http://lxml.de/build.html#building-the-sources

您罗纳尔多,也很想可以使用PIP源安装

pip install -e git+git://github.com/lxml/lxml.git#egg=lxml 

有记住,LXML需要Cython

+0

'hg clone git://github.com/lxml/lxml.git lxml'或'git clone git://github.com/lxml/lxml.git lxml ' –

首先安装CPython的,(PIP安装CPython的) 它已经在你的错误代码中提到,其中蟒蛇告诉你: ERROR:B“‘XSLT的配置’不被识别为一个内部或外部命令, \ r \ noperable程序或批处理文件。\ r \ n”个

那么的libxml(2)的libxslt从http://www.xmlsoft.org/downloads.html

安装LXML(PIP安装LXML)

只是首发PL尝试它可能工作为你和其他人