GUIDE · PYTHON
Python 3.10 end of life: what to do now
Python 3.10 stopped getting security fixes on 1 October 2026. How urgent that is depends on where your Python comes from. Here is how to check, which version to move to, and how to upgrade without surprises.
GuidesPublished 12 November 2026
What changed on 1 October 2026
Nothing stops working. Python 3.10.22, released on 1 October 2026, is the last release of the 3.10 series, and the Python team will publish no more security fixes for it (python.org).
That last release fixed eight vulnerabilities with a CVE number, in modules as common as tarfile, zipfile and ssl. The next flaw found in those modules will not be fixed in 3.10.
The Windows and macOS installers stopped long before: 3.10.11 was the last 3.10 release with installers, and every release after it was source only (python.org). A machine set up with an installer from python.org has been missing fixes for a while.
Where does your Python come from?
The answer decides whether you have months or should move now:
| Where your 3.10 comes from | Still patched? | What to do |
|---|---|---|
| Ubuntu 22.04's own python3.10 package | Yes, until May 2027, and until May 2032 with Ubuntu Pro | Plan it with the Ubuntu 22.04 upgrade: Ubuntu 24.04 ships Python 3.12. |
| A Docker image such as python:3.10 | No | Change the FROM line to a newer version and rebuild the image. |
| The python3.10 runtime on AWS Lambda | No, deprecated since 31 October 2026 | Switch the function to python3.13 or python3.14. |
| Python built from source, with pyenv or with a python.org installer | No | Install a newer version and rebuild the virtual environment. |
Ubuntu ships python3.10 in its main repository, so Canonical keeps fixing it during the release's standard support (Ubuntu packages). On another distribution, check its own security tracker.
Docker's official python image no longer lists any 3.10 tag among its supported tags (Docker Hub).
On Lambda, functions on python3.10 keep running, but AWS no longer applies security patches to the runtime. Creating new functions on it is blocked from 29 July 2027 and updating them from 31 August 2027 (AWS).
Check what you run
Three commands find most of it: the version on a server, the Dockerfiles that start from a 3.10 image, and the Lambda functions still on python3.10 (run the last one in each region you use):
python3 --version
grep -rn "python:3.10" --include="Dockerfile*" .
aws lambda list-functions --query "Functions[?Runtime=='python3.10'].FunctionName"Also look at your CI configuration and at requires-python in pyproject.toml, which often still say 3.10.
Which version to move to?
| Version | Security fixes until | When to choose it |
|---|---|---|
| Python 3.11 | October 2027 | Only as a stepping stone: you will have to move again in a year. |
| Python 3.12 | October 2028 | The version Ubuntu 24.04 ships, and the minimum for Django 6 and NumPy 2.5. |
| Python 3.13 | October 2029 | A good default today if your libraries support it. |
| Python 3.14 | October 2030 | Out since October 2025, and supported a year longer than 3.13. |
| Python 3.15 | October 2031 | Released in October 2026. Check that every library you use supports it first. |
Dates from the Python developer guide. Future dates are planned and can move.
Your framework may decide for you. Django 5.2 is the last Django to support Python 3.10 and 3.11, and Django 6.0 needs Python 3.12 or newer (Django). Django 5.2 itself gets fixes until April 2028 (Django). NumPy 2.5 supports Python 3.12 to 3.14 (NumPy).
What usually breaks
- distutils is gone (3.12). Old packages and setup.py scripts that import it no longer install. Upgrade them first (Python 3.12).
- venv no longer installs setuptools (3.12). A build that relied on it being there now has to install it explicitly.
- imp, asyncore and asynchat are gone (3.12). Search your code and your dependencies for them.
- 19 old modules are gone (3.13), among them cgi, crypt and telnetlib, as well as lib2to3 (Python 3.13).
- Old pinned versions. A requirements file written for 3.10 often pins packages that have no ready-built wheel for the new Python, so pip tries to compile them and fails. Raise those pins first.
Upgrade steps
- List every place Python runs: servers, Dockerfiles, CI jobs, Lambda functions and scheduled scripts.
- Pick the target version, and check on PyPI that your main libraries support it.
- Create a fresh virtual environment on the new version instead of copying the old one, and install from your lock file or requirements.
- Run the tests with warnings shown (python -W default -m pytest) and fix what the new version reports.
- Change the Dockerfile, the CI configuration and the Lambda runtime in the same change, so every environment runs the same version.
- Deploy to staging first, then to production, with the previous image or package ready to roll back.
If you cannot upgrade yet
Find out first where your 3.10 comes from: on Ubuntu 22.04 the system package is still patched until May 2027, which buys time. Everywhere else, keep the app's other dependencies patched, reduce what it exposes to the internet, and write down the date you will upgrade.
Questions
Will my app stop working?
No. Python 3.10 keeps running, and so do Lambda functions on python3.10. What stops is the stream of security fixes.
Is moving to Python 3.11 enough?
For a year. Its security fixes end in October 2027, so aim for 3.12 or newer unless a library holds you back.
My server runs Ubuntu 22.04. Am I affected?
Not yet, if your app uses the system python3.10: Ubuntu patches it until May 2027. The end comes with the release itself, so plan both together with our Ubuntu 22.04 guide.
What about Python 3.9 or older?
Those versions are already out of support. The steps are the same, but expect more to break on the way.
Can PatchTempo do the upgrade?
Yes. It is part of the one-off hardening upgrade: tried on a copy first, rolled out after your approval, with the previous version ready to switch back to. Start with the free audit.