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, orPipfile.lock
Vercel supports the following Python versions:
- 3.12 (default)
- 3.13
- 3.14
Use one of the following files:
pyproject.tomlAdd or update
requires-pythonin the[project]section:pyproject.toml[project] requires-python = ">=3.12".python-versionCreate or update a
.python-versionfile:.python-version3.13Pipfile.lockIf you use Pipenv, update and commit
Pipfile.lock.Commit the change and redeploy your project.
Vercel uses Python 3.12 when your repository does not define a supported Python version.
Was this helpful?