win 10上python 3.5的lxml 3.6.4安装错误
当我尝试使用win 10上python 3.5的lxml 3.6.4安装错误,python,python-3.x,windows-10,lxml,libxml2,Python,Python 3.x,Windows 10,Lxml,Libxml2,当我尝试使用pip install lxml在Windows 10上为python 3.5安装lxml时,我收到如下错误消息: "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 insta
pip install lxml
在Windows 10上为python 3.5安装lxml时,我收到如下错误消息:
"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的安装文件返回“无法找到libxml2:update includes_dir”
有关于如何解决这些问题的建议吗?如果没有可链接的依赖库和工作工具链(需要windows上与python版本相匹配的Visual Studio),就无法从源代码编译lxml 从下载预编译的二进制控制盘 使用pip安装它:
pip install path-to-lxml-3.6.4-cp35-cp35m-win_amd64.whl
有些库可能需要带有标题的C/C++
*.h
文件来编译代码。因此,您可能需要源代码,或者至少需要libxml2dev
和*.h
文件。