Setting Your Python Version

Issues deploying your Python app? See Troubleshooting Python Deploys.

Current default Python versionMinimum supported Python version

3.13.4

Services created before 2025-06-12 have a different default version. See below.

3.7.3

Set a different Python version in any of the following ways (in descending order of precedence):

  1. Set your service's PYTHON_VERSION environment variable to a fully qualified Python version (e.g., 3.13.5). You can specify any released version from 3.7.3 onward.

    Setting the PYTHON_VERSION environment variable

    You must specify a fully qualified version (e.g., 3.13.5) if you use this method.

  2. Add a file named .python-version to the root of your repo. This file contains a single line with the version to use:

    3.13.5

    You can omit the patch version (e.g., 3.13) if you use this method. If you omit it, Render uses the latest corresponding patch version.

Render doesn't support unreleased Python versions natively, but you can use them via Render's Docker support.

History of default Python versions

If you don't set a Python version for your service, Render's default version depends on when you originally created the service:

Service Creation DateDefault Python Version
2025-06-12 and later3.13.4
2024-12-16 to 2025-06-123.11.11
2024-10-29 to 2024-12-163.11.10
2024-04-04 to 2024-10-293.11.9
2024-02-22 to 2024-04-043.11.8
2024-01-02 to 2024-02-223.11.7
2023-12-04 to 2024-01-023.11.6
Before 2023-11-013.7.10