
If you see a GitHub URL such as the one above (or one that is pinned to a custom branch or tag), then it’s recommended that you instead switch to heroku/python, which is the curated stable buildpack registry release. To check which buildpack(s) are configured on your app, use the heroku buildpacks CLI command: $ heroku buildpacks So using it will improve build performance compared to GitHub URLs.įor more information see Buildpack References. The stable heroku/python buildpack release is also pre-installed in the build environment, Not work, and you won’t benefit from future bug fixes or improvements made to the buildpack. (rather than pinning to a tag/branch or using a fork), otherwise some documented features may

python-3.7.16 (available on the Heroku-18 and Heroku-20 stacks only)įor best results it’s recommended that you are using the latest stable version of the buildpack.python-3.8.16 (available on the Heroku-18 and Heroku-20 stacks only).python-3.9.16 (available on all stacks).python-3.10.11 (available on all stacks).python-3.11.3 (available on all stacks recommended).You can also specify a different supported Python version. When a deployed application is recognized as a Python application, you’ll see this in the build output: $ git push heroku masterīy default, newly created Python apps use the python-3.11.3 runtime. Heroku automatically recognizes your app as a Python app if it includes a requirements.txt, setup.py or Pipfile file in its root directory. Heroku supports all popular web frameworks for Python (Django, Flask, and so on).įor a deployment tutorial that uses a sample Django app, see Getting Started on Heroku with Python.
