Python Version Years out of Date

Hi Netlify,
I love how your product is made, I just have one complaint.

Your python version is 2.7.

This has reached end of life, and should not be used. I want to be able to use the newest Python version, so please make it so this is possible.

Thank you.

We have newer versions available. Our default hasn’t changed in years, because it will break some peoples’ builds. Please check out this article for how to pick a different one:

(specifically, we support up to 3.7 - build-image/included_software.md at xenial · netlify/build-image · GitHub)

Hi, bumping this up because I’m running into the same issue today, 4+ years later.

It is April 2023 as I write this. Python 3.9 was released in October 2020. Netlify still only supports Python 3.8. We’ll have to remove features of recent Python to get our documentation to build, specifically, the type hints of a structure list[int] etc are not supported by Python 3.8. It’s a pain, and may degrade our ability to do static analysis with mypy. At some point, we’ll probably need to migrate our docs off of Netlify, which would be a pain, but necessary when we need the up to date mypy capability.

Have you tried changing the python version used for the build system as per the Manage dependencies → Python documentation @valerie1?

I have started a new thread: The current Python version (3.8) is very old