1.使用 pip 安装(已将 lxml 的 whl 文件下载到本地)报错如下: C:\Users\Home\AppData\Local\Programs\Python\Python35-32\Scripts>pip install lxml-3.6.0-cp35-cp35m-win_amd64.whl lxml-3.6.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
2.使用 easy_install 安装,报错如下: Using build configuration of libxslt cl: 命令行 warning D9025 :正在重写“/W3 ”(用“/w ”) lxml.etree.c src\lxml\includes\etree_defs.h(14): fatal error C1083: 无法打开包括文件: “ libxml/xmlversion.h ”: No such file or directory Compile failed: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with e xit status 2
由: C:\Users\Home\AppData\Local\Programs\Python\Python35-32\Scripts>pip install lxml-3.6.0-cp35-cp35m-win_amd64.whl lxml-3.6.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.