“希罗库”;未能编译";使用heroku/python构建包,没有运行pip的迹象
我正在开发一个Python应用程序,使用“希罗库”;未能编译";使用heroku/python构建包,没有运行pip的迹象,python,heroku,deployment,Python,Heroku,Deployment,我正在开发一个Python应用程序,使用aiohttp和redis在Heroku中运行。它通过GitHub部署到Heroku。虽然在本地运行应用程序没有问题,但它无法在Heroku中构建,并出现以下错误 -----> Using set buildpack heroku/python -----> Python app detected -----> Installing python-3.5.2 ! Requested runtime (python-3.5.2
aiohttp
和redis
在Heroku中运行。它通过GitHub部署到Heroku。虽然在本地运行应用程序没有问题,但它无法在Heroku中构建,并出现以下错误
-----> Using set buildpack heroku/python
-----> Python app detected
-----> Installing python-3.5.2
! Requested runtime (python-3.5.2
! Aborting. More info: https://devcenter.heroku.com/articles/python-support
! Push rejected, failed to compile Python app
由于构建在pip有机会运行之前就被中止了,所以我不太确定出了什么问题runtime.txt
是从一个单独的Heroku应用程序复制过来的,该应用程序构建良好,我在我的requirements.txt
中找不到任何问题
我的requirements.txt
是:
aiohttp==0.21.6
redis==2.10.5
python-3.5.2
我的runtime.txt
是:
aiohttp==0.21.6
redis==2.10.5
python-3.5.2
嗯。所以我和你有同样的问题。如果你仔细观察,你会发现:
Requested runtime (python-3.5.2
注意“(”。可能与文件的编码有关。在Ubuntu中,我使用了dos2unix(apt get install dos2unix&&dos2unix runtime.txt)它解决了这个问题。或者,您可以调整您最喜欢的文本编辑器/IDE中的设置。至少您知道要查看的位置。好的。因此,我遇到了与您相同的问题。如果您仔细查看,您会看到:
Requested runtime (python-3.5.2
请注意“(”。可能与文件的编码有关。在Ubuntu中,我使用了dos2unix(apt get install dos2unix&&dos2unix runtime.txt)解决了这个问题。或者,您也可以调整您最喜欢的文本编辑器/IDE中的设置。至少您知道在哪里可以查看