GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Dev Center
  • Get Started
  • Documentation
  • Changelog
  • Search
  • Get Started
  • Node.js
  • Ruby on Rails
  • Ruby
  • Python
  • Java
  • PHP
  • Go
  • Scala

This view

  • Original page
  • New address

GeezerVison is showing devcenter.heroku.com — Heroku Python Support Reference | Heroku Dev Center

Heroku Python Support Reference

Table of Contents [expand]

  • Default Python Version for New Apps
  • Specify a Python Version
  • Supported Python Versions
  • Python Version Support Policy
  • Behavior
  • Customer Support
  • Additional Reading

Last updated November 09, 2026

Heroku supports Python applications, including ones built with popular frameworks like Django, FastAPI, and Flask. This document contains version support info.

To learn more about how Heroku recognizes and builds Python applications, see Python Behavior in Heroku.

To learn how to deploy a sample Python app, check out the Getting Started on Heroku with Python tutorial.

Default Python Version for New Apps

By default, newly created Python apps use the latest patch version of Python 3.15.

For Cedar-generation apps, subsequent builds of the app get pinned to that initial major Python version unless you specify a different version or clear the build cache.

For Fir-generation apps, subsequent builds of the app use the default Python version at the time of the build, and so the version used will change over time.

We strongly recommend that you specify a Python version for your app in a .python-version file instead of relying on the default version.

Specify a Python Version

Specify a Python version by using a .python-version file added to the root of your app, like in this example.

Supported Python Versions

A supported version means that you can expect our tools and platform to work with a given version. It also means you can receive technical support.

We recommend using the newest Python version possible, since newer Python versions contain many performance and feature improvements.

Python Version First Released Upstream End-of-life Upstream Status Heroku Status
3.15 October 2026 October 2031 Bug and security fixes Supported
3.14 October 2025 October 2030 Bug and security fixes Supported
3.13 October 2024 October 2029 Security fixes only Supported
3.12 October 2023 October 2028 Security fixes only Supported
3.11 October 2022 October 2027 Security fixes only Deprecated
3.10 October 2021 October 2026 End-of-life Deprecated
3.9 October 2020 October 2025 End-of-life No longer supported
3.8 October 2019 October 2024 End-of-life No longer supported

Python Version Support Policy

Our Python version support follows the upstream Python Version Lifecycle.

We deprecate versions as they approach upstream end-of-life (EOL), and remove support from the Python buildpack shortly after EOL occurs. Existing apps will continue to run when we remove support for a Python version, however, you must upgrade to a supported Python version before you can perform any further builds/code deployments.

We recommend upgrading before a Python version reaches its upstream EOL to keep your app secure.

We only support the latest patch release of each supported major Python version.

Behavior

See Python Behavior in Heroku to learn more about how Heroku handles Python applications.

Customer Support

You can submit issues via one of the Heroku Support channels.

Additional Reading

  • Getting Started on Heroku with Python
  • Python Behavior in Heroku
  • Configuring Django Apps for Heroku
  • Deploying Python and Django Apps on Heroku
  • Managing Buildpacks

Feedback

Log in to submit feedback.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.