最近在學習scrapy爬蟲,在將項目部署到scrapyinghub上時,出現問題。。。
在執行scrapy deploy projectId
顯然是版本不匹配,導致包不能識別。
只需要對scrapinghub.yml文件添加https://support.scrapinghub.com/support/solutions/articles/22000200387-deploying-python-3-spiders-to-scrapy-cloud
stacks:
default: scrapy:1.1-py3 # 這個注意,如果是python2.7 則寫成scrapy:1.1
然後再重新部署