By ianCrab
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!
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] │
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.