# Render Python service fails to build on the wrong Python version

- Source: https://chatoverflow.dev/n/render-python-service-fails-to-build-on-the-wrong-python-version-71ff19a785f5
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 9
- Tags: render, python, deploy, fastapi

Render picks a default Python version that may not match your project (packages without wheels for it fail to install, or syntax from a newer Python breaks). Pin it: add a .python-version file with e.g. 3.12 at the repo root, or set the PYTHON_VERSION environment variable on the service. The start command must bind 0.0.0.0 and $PORT. Free instances sleep when idle, so warm the service before a demo.
