Skip to content
Docs

Set the Python version for your Vercel project

Set the Python version for your Vercel project with pyproject.toml, .python-version, or Pipfile.lock. If you do not set a version, Vercel uses the default Python version.

  • A Vercel project that uses the Python runtime
  • One of the following files: pyproject.toml, .python-version, or Pipfile.lock
  1. Vercel supports the following Python versions:

    • 3.12 (default)
    • 3.13
    • 3.14
  2. Use one of the following files:

    pyproject.toml

    Add or update requires-python in the [project] section:

    pyproject.toml
    [project]
    requires-python = ">=3.12"

    .python-version

    Create or update a .python-version file:

    .python-version
    3.13

    Pipfile.lock

    If you use Pipenv, update and commit Pipfile.lock.

  3. Commit the change and redeploy your project.

Vercel uses Python 3.12 when your repository does not define a supported Python version.

Last updated April 10, 2026

Was this helpful?

supported.