Report this

What is the reason for this report?

What versions of python are available for app platform

Posted on December 20, 2021

What versions of python are available for app platform?

This would be good information to add to the app platform docs.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @ianCrab,

The Python version on App Platform is 3.9.2. You can check it out here:

https://docs.digitalocean.com/products/app-platform/languages-frameworks/python/

Search for ‘Python Version’ and you should be able to see it.

Hi there,

In addition to what has been already mentioned, you can also configure the python version used at runtime by specifying a runtime.txt file at the root of your source code. For example, if you wanted to have Python 3.9.1, you would have to add the following to the runtime.txt file:

python-3.9.1

Best, Bobby

I had this happen, do app build suggest check

https://devcenter.heroku.com/articles/python-support

[2022-12-07 23:41:47] ╭──────────── app build ───────────╼ [2022-12-07 23:41:55] │ -----> Using Python version specified in runtime.txt [2022-12-07 23:41:55] │ ! Requested runtime ‘3.9.1’ is not available for this stack (heroku-18). [2022-12-07 23:41:55] │ ! For supported versions, see: https://devcenter.heroku.com/articles/python-support [2022-12-07 23:41:55] │ ERROR: failed to build: exit status 1 [2022-12-07 23:41:56] │ [2022-12-07 23:41:56] │ [2022-12-07 23:41:56] │ For documentation on the buildpacks used to build your app, please see: [2022-12-07 23:41:56] │ [2022-12-07 23:41:56] │ Python v0.216.4 https://do.co/apps-buildpack-python [2022-12-07 23:41:56] │

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.