我正尝试在Windows 10机器上使用python与PyCharm进行一些网页报废。有些网站建议使用lxml库,听起来不错。我正在尝试加载软件包但遇到问题。我该怎么办?未能用pycharm加载软件包
好极了。我去的安装程序包添加LXML 3.6.4和它失败的消息(S):
ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
和
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
我通过安装程序包安装libxml2dom但是,这并不做招
XSLT的配置是不是在可用的软件包安装 libxml2的可用的软件包的一个也没有可用的包
我没有做请参阅可用软件包的选项中的“libxml2”。但我确实看到“的libxml2-python的” 2.6.21 我试图安装它,但它未能与消息:
Collecting libxml2-python==2.6.21
Could not find a version that satisfies the requirement libxml2-python==2.6.21 (from versions:)
No matching distribution found for libxml2-python==2.6.21
我已经能够加载其他包 使用Python解释器3.5.2 使用PyCharm社区版2016.2.3
我建议使用scrapy包(https://scrapy.org/)来抓取网站。通过pip install安装软件包scrapy会安装所有需要的软件包,包括libxml(而不是libxml2) – delusionX