scrapyd部署项目时的错误:environment can only contain strings

这可能是个bug,因为组件的版本问题,所以我采取降低版本解决


1.降低scrapy版本,我是从1.4.0降到1.0.7

2.降低scrapyd版本,我忘了,但是我降到了1.1.1


不要用pip install 命令安装,自己去github找对应版本下载安装


连接地址:

    scrapy:https://github.com/scrapy/scrapy/tree/1.0

        scrapyd:https://github.com/scrapy/scrapyd/tree/1.1.1


scrapyd部署项目时的错误:environment can only contain strings


以scrapy安装为例,scrapyd同理,下载解压,将解压后的文件夹放在你的python安装目录里,我的是e:\Python2,然后进入cmd,进入e:\Python2\scrapy\ 执行命令 python setup.py install进行安装,可能会报错 error:could not find required distribution pyasn1,再执行一遍 python setup.py install 就好了