错误:此平台不支持Twisted-20.3.0-cp38-cp38-win_amd64.whl

时间:2020-06-26 12:20:59

标签: python heroku twisted

我的计算机上安装了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```

1 个答案:

答案 0 :(得分:0)

删除Twisted-20.3.0-cp38-cp38-win_amd64.whl中的requirement.txt

我认为这不是必需的,因为在安装scrapy时,它将得到照顾