- You can set your python version in heroku by creating a file called runtime.txt (in the root folder) - Add the following line in the file, replace the numbers with whatever version you want. python-3.10.3