未能在Python中检测到set buildpack

2024-06-01 01:54:38 发布

您现在位置:Python中文网/ 问答频道 /正文

我是python Flask的新手,我正在尝试将我的应用程序推送到Heroku。我已经包括了要求.txt文件以及根目录中的Procfile。但我一直收到这样的信息:

remote: -----> Failed to detect set buildpack https://codon-buildpacks.s3.amazon   aws.com/buildpacks/heroku/python.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-fa   ilure
remote:
remote:  !     Push failed
remote: Verifying deploy....
remote:
remote: !       Push rejected to fathomless-taiga-95236.
remote:
To https://git.heroku.com/fathomless-taiga-95236.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/fathomless-taiga-9523            
6.git'

Tags: tohttpsgitmastercomflaskherokuremote