App not compatible with buildpack - Heroku

The Heroku Python Support will be applied to applications only when the application has a Pipfile or requirements.txt in the root directory.

Visit the documentation to get detailed instructions.


I just found out... It's quite a silly issue. Make sure the git repo is initialized within the project root folder. Suppose the project is a Django app and the project folder created by Django is my-project, the git repo needs to be initialized right within my-project for Heroku to work...


add pipfile & procfile, & commit them , this solved for me :)

You can see the files I am speaking of on this heroku sample : link

heroku buildpack on github : link


You can try doing:

  1. pip3 freeze > requirements.txt
  2. heroku buildpacks:set heroku/python
  3. git add .; git commit -m "add requirements.txt"; git push heroku master

Note: Make sure you're in your root directory of your Python project :)


try add a file named requirement.txt and enter anything you need like django