win10上python3.5的lxml3.6.4安装错误

2024-09-30 22:12:33 发布

您现在位置:Python中文网/ 问答频道 /正文

当我尝试使用pip install lxml在Windows 10上安装lxmlfor python 3.5时,我得到如下错误消息:

"b" 'xslt-config' is nor recognized as an external or internal command, 
\r\noperable program or batch file.\r\n" ** make sure the developement 
packages of libxml2 and libxslt are installed **

问题是我不知道如何安装libxml2,因为libxml2的安装文件返回"failed to find headers for libxml2: update includes_dir"

关于如何解决这些问题有什么建议吗?在


Tags: installpiporconfig消息iswindowsas
1条回答
网友
1楼 · 发布于 2024-09-30 22:12:33

如果没有可供链接的依赖库和有效的工具链(这需要与python版本相匹配的windows上的visualstudio版本),就无法从源代码编译lxml

here下载一个预编译的二进制控制盘。在

用pip安装:

pip install path-to-lxml-3.6.4-cp35-cp35m-win_amd64.whl

相关问题 更多 >