[英]App not compatible with buildpack - Heroku/python
I get this message when trying to push my project to GitHub to connect with Heroku尝试将我的项目推送到 GitHub 以与 Heroku 连接时收到此消息
-----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
Push failed
I already put my Requirements.txt
and Procfile
in the root.我已经将我的
Requirements.txt
和Procfile
放在了根目录中。 My Requirements.txt
looks like this:我的
Requirements.txt
看起来像这样:
json5==0.8.5
jsonschema==2.6.0
regex==2018.2.21
requests==2.23.0
schedule==0.6.0
spotipy==2.12.0
tweepy==3.8.0
and my Procfile
looks like this:我的
Procfile
看起来像这样:
worker: python app.py
My GitHub repo is: https://github.com/dahliahadfury/Spotify-recommendation我的 GitHub 回购是: https://github.com/dahliahadfury/Spotify-recommendation
I already put my
Requirements.txt
andProcfile
in the root我已经将我的
Requirements.txt
和Procfile
放在了根目录中
Case is important.案例很重要。 The requirements file must be named
requirements.txt
(all lowercase).需求文件必须命名为
requirements.txt
(全部小写)。
Rename your requirements file, commit, and deploy again:重命名您的需求文件,再次提交并部署:
git mv Requirements.txt requirements.txt
git commit -m "Fix name of requirements file"
git push heroku master
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.