Win10 爬虫安装

Win10 scrapy install

我已经 python 安装了 C++ 编译器。当我从命令行 运行 "pip install scrapy" 开始安装时,我在 libxml 和 libxslt 周围遇到了一些错误。

error: 'xslt-config' is not recognized...

cannot open libxml/xmlversion.h no such file or directory

compile failed windows C++ for python failed with exit status 2

could not find function xmlCheckVersion

is libxml installed.....

使用这个:

set STATICBUILD=true && pip install lxml

查找文档here