Specifying a Python Runtime | Heroku Dev Center

Specifying a particular version of Python via your app's runtime.txt.