我的计算机上安装了Python 3.8.3,Scrapy 2.2.0和Twisted-20.3.0-cp38-cp38-win_amd64.whl。一切正常。 没有Twisted我无法安装Scrapy,因此也安装了Twisted,但是当我尝试将应用程序转移到Heroku时,会出现错误。如何在Heroku上使用Scrapy?
-----> Found python-3.6.10, removing -----> Requirements file has been changed, clearing cached dependencies -----> Installing python-3.8.3 -----> Installing pip -----> Installing SQLite3 -----> Installing requirements with pip ERROR: Twisted-20.3.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform. ! Push rejected, failed to compile Python app. ! Push failed```
答案 0 :(得分:0)
删除Twisted-20.3.0-cp38-cp38-win_amd64.whl
中的requirement.txt
我认为这不是必需的,因为在安装scrapy
时,它将得到照顾