scrapy有很多依赖库,如果不安装这些库文件,执行scrapy命令就会出错,大概分为6条
只需要按这个步骤依次执行就安装好库文件了,1:pip install wheel 2:pip install lxml 3: pip install PyOpenssl 4:pip install Twisted 5:pip install Pywin32 6:pip install Scrapy
安装完这些库文件就足够应付日常应用了,如果安装之后出现def write(self, data, async=False):错误,只需要到python里面找到manhole.py文件,然后随便换个名字替换掉里面全部的async就可以了,如我的是async123。全部替换之后保存即可,我的这个文件就在F:\python\Lib\site-packages\twisted\conch目录下,