A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://devcenter.heroku.com/articles/python-runtimes below:

Specifying a Python Version | Heroku Dev Center

Specifying a Python Version English — 日本語に切り替える

Last updated May 04, 2025

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

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 can 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.

Selecting a Runtime

To specify a Python version, add a .python-version file to your app’s root directory that declares the Python version number to use.

This Python version can be either:

  1. The major version only, for example: 3.13 (recommended)
  2. An exact patch version, for example: 3.13.999

We strongly recommend that you specify only the major Python version (e.g. 3.13) instead of pinning to an exact patch version, so that your app automatically receives Python security updates each time it builds.

For example:

$ cat .python-version
3.13

To check which version of Python you’re running locally, activate your virtual environment and run python --version.

The runtime.txt file is deprecated. If your app uses it, we recommend switching to a .python-version file instead, since it’s more widely supported by other tooling in the Python ecosystem.

Supported Runtime Versions

See Supported Python Versions.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4