python3安装不了lxml_python3.4安装中出现lxml错误

我试图在命令提示符下运行以下命令-pip install -r requirements.txt

但是它显示了很多错误,我不知道如何解决它们,因为我不熟悉python。在

错误包括:

1在

^{pr2}$

3。在Failed building wheel for lxml

Running setup.py clean for lxml

Failed to build lxml

Installing collected packages: lxml, cssselect, pyquery

Found existing installation: lxml 4.0.0

Uninstalling lxml-4.0.0:

Successfully uninstalled lxml-4.0.0

Running setup.py install for lxml ... error

Complete output from command c:\python34\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Mohana\\AppData\\Local\\Temp\\pip-build-9bz1xoev\\lxml\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Mohana\AppData\Local\Temp\pip-rjvm3d2l-record\install-record.txt --single-version-externally-managed --compile:

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 **

4.

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 (x86)\\Microsoft Visual Studio 10.0\\VC\\Bin\\cl.exe' failed with exit status 2

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I/usr/include/libxml2 /TcC:\Users\Mohana\AppData\Local\Temp\xmlXPathInity8a5suic.c /FoUsers\Mohana\AppData\Local\Temp\xmlXPathInity8a5suic.obj

xmlXPathInity8a5suic.c

C:\Users\Mohana\AppData\Local\Temp\xmlXPathInity8a5suic.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 (x86)\\Microsoft Visual Studio 10.0\\VC\\Bin\\cl.exe' failed with exit status 2

我真的需要帮我解决这些问题。我使用的是Windows10(英特尔处理器)和Python3.4。在

你可能感兴趣的:(python3安装不了lxml)