Python 3.10 is end of life: what does running an unsupported Python cost us, and when does 3.11 go?

November 27, 2026 Software Development 10 mins read By Nikit Nandan

Short answer. Python 3.10 reached end of life on 1 October 2026: 3.10.22 was its final release, and no security fixes will follow. Python 3.11 goes the same way in October 2027. The bigger cost of staying is already showing: NumPy, pandas, SciPy, scikit-learn and Django have released versions that refuse to install on 3.10, so every month you stay you also fall further behind on your libraries. Move to Python 3.13 or 3.14, not 3.11.

Python end of life card: Python 3.10 end of life 1 October 2026, Python 3.11 end of life October 2027, upgrade target Python 3.13 or 3.14
Python 3.10 reached end of life on 1 October 2026.
  • Python 3.10End of life 1 October 2026. Final release 3.10.22
  • Python 3.11Security fixes only; end of life October 2027
  • Python 3.12Security fixes only; end of life October 2028
  • Recommended targets3.13 (to October 2029) or 3.14 (to October 2030)
  • AWS Lambdapython3.10 deprecated 31 October 2026; function updates blocked from 31 August 2027

Dates are from the Python developer's guide, PEP 619 and PEP 664; library data from PyPI, checked on 21 November 2026.

When does each Python version reach end of life?

Each Python release gets about five years. For roughly the first one and a half to two years it receives bug fixes with installers; after that it gets security fixes only, as source releases, until end of life (EOL). After EOL the core team ships nothing for it.

VersionFirst releaseEnd of lifeStatus today
Python 3.95 October 202031 October 2025End of life
Python 3.104 October 20211 October 2026End of life (3.10.22 was the last)
Python 3.1124 October 2022October 2027Security fixes only
Python 3.122 October 2023October 2028Security fixes only
Python 3.137 October 2024October 2029Security fixes only
Python 3.147 October 2025October 2030Bug fixes
Python 3.159 October 2026October 2031Bug fixes, newest

The devguide gives 3.11's end of life as a month, not a day; PEP 664 says security releases continue "until approximately October 2027". Plan against 1 October 2027.

Timeline of Python end-of-life dates: 3.9 on 31 October 2025, 3.10 on 1 October 2026 with 3.10.22 as the last release, 3.11 in October 2027, 3.12 in October 2028, 3.13 in October 2029 and 3.14 in October 2030
Python end-of-life dates. Source: Python developer's guide.

What does running an unsupported Python cost you?

Nothing breaks on the day. The costs build up in four places.

1. Security fixes stop

Python's standard library parses archives, email, URLs, HTTP and XML, which is exactly the code attackers aim at. When the next flaw in one of those modules is fixed, the fix ships in 3.11 and later only. A web app, API or data pipeline on 3.10 keeps the bug. One caveat: if your Python comes from a Linux distribution (Ubuntu 22.04 LTS ships 3.10 as its system Python), the vendor may keep patching its own package. Docker images, pyenv and uv installs, and Windows installs from python.org get nothing.

2. Your libraries leave without you

Most scientific Python projects follow SPEC 0, which drops support for a Python version three years after its release, well before its end of life. The result, from each package's requires_python on PyPI:

LibraryLast version for Python 3.10First version needing 3.11+Already needs 3.12+
NumPy2.2.62.3.0 (June 2025)2.5.0 (June 2026)
SciPy1.15.31.16.0 (June 2025)1.18.0 (June 2026)
pandas2.3.33.0.0 (January 2026)Not yet
scikit-learn1.7.21.8.0 (December 2025)Not yet
Django5.2 LTSNot applicable6.0 (December 2025)
SQLAlchemy2.0.x2.1.0 (September 2026)Not yet
FastAPI0.162.50.162.6 (November 2026)Not yet

Notice the right-hand column: NumPy and SciPy already need 3.12, so even 3.11 is behind on the scientific stack. Pinning old versions works for a while, until a security fix lands in a version you can no longer install. Django users have a little more room: Django 5.2 LTS still runs on 3.10 and gets security fixes until April 2028.

The same is happening outside the scientific stack. PyTorch 2.15 (October 2026), Polars 2.1 (October 2026) and Apache Airflow 3.4 (November 2026) all declare Python 3.11 as their minimum on PyPI. If your machine learning models or data pipelines run on 3.10, the next release of the framework you depend on will not install.

Chart of popular libraries that require a newer Python: NumPy 2.3, SciPy 1.16, pandas 3.0 and scikit-learn 1.8 need Python 3.11 or newer; Django 6.0, NumPy 2.5 and SciPy 1.18 need Python 3.12 or newer
The first release of each library that will not install on older Python, from each package's metadata on PyPI.

3. Cloud runtimes set their own deadlines

AWS Lambda deprecated the python3.10 runtime on 31 October 2026. Creating new functions on it is blocked from 29 July 2027 and updating existing ones from 31 August 2027 (AWS deprecation policy). python3.11 runs on Amazon Linux 2 and is deprecated on 30 June 2027, so it is a poor target too. python3.13 and python3.14 run on Amazon Linux 2023 with deprecation planned for 30 June 2029 (Lambda runtimes).

4. You leave free performance on the table

Python 3.11 was the big speed release: the Python docs say it is "between 10-60% faster than Python 3.10", with an average 1.25x speedup on the standard benchmark suite (What's new in 3.11). Later versions kept improving. For CPU-bound API handlers and batch jobs, the upgrade often pays for some of its own cost in compute.

How do you find everything still running Python 3.10?

The version hides in more places than the developers' laptops. Before planning, list every runtime that executes your Python code. A few commands cover most estates:

# Container images built on old Python base images
grep -rnE "FROM python:3\.(9|10|11)" --include="Dockerfile*" .

# Version pins in project metadata and CI
grep -rnE "requires-python|python_requires|python-version" pyproject.toml setup.cfg setup.py .github/workflows 2>/dev/null

# AWS Lambda functions on old runtimes (repeat per region)
aws lambda list-functions --query "Functions[?Runtime=='python3.10' || Runtime=='python3.11'].[FunctionName,Runtime]" --output table

# On each server or VM
python3 --version; ls /usr/bin/python3*

Also check the places nobody greps: scheduled scripts on a utility server, notebooks that a finance or operations team runs by hand, vendor tools that bundle their own Python, and build agents in CI. For each one, note the owner, whether it touches customer data or the internet, and whether it has tests. Upgrade the exposed ones first: public APIs, web apps and anything that parses files uploaded by users.

Which version should you upgrade to?

TargetEnd of lifeChoose it whenAvoid it when
3.11October 2027Almost never: only as a stepping stone if a dependency blocks 3.12You want more than 11 months before the next upgrade
3.12October 2028A vendor or platform certifies 3.12 but not laterYou can go further; NumPy and Django 6 already require it, so it is a minimum, not a target
3.13October 2029Most production apps: mature, wide wheel coverage, long runwayYou depend on a module removed in 3.13 and cannot replace it yet
3.14October 2030All your compiled dependencies publish 3.14 wheelsA key C-extension package lags behind

Jumping from 3.10 straight to 3.13 is normal. You deal with the removals of 3.11, 3.12 and 3.13 in one pass, and you test once.

What breaks between Python 3.10 and 3.13?

Language syntax is backward compatible; the breaks are in the standard library and packaging. These are the errors you will meet:

  • ModuleNotFoundError: No module named 'distutils'. distutils was removed in 3.12. Old setup.py files and some build scripts import it; setuptools still provides a replacement.
  • ModuleNotFoundError: No module named 'pkg_resources'. Since 3.12, venv no longer pre-installs setuptools, so code that imports pkg_resources needs setuptools listed as a dependency, or better, importlib.metadata instead.
  • ModuleNotFoundError: No module named 'imp', and the same for asyncore and asynchat, all removed in 3.12 (What's new in 3.12).
  • AttributeError on old unittest aliases such as assertEquals, assertRegexpMatches and failUnless, removed in 3.12.
  • Nineteen "dead battery" modules removed in 3.13, including cgi, crypt, telnetlib, imghdr, pipes and uu, plus lib2to3 (What's new in 3.13).

Find them before the upgrade rather than after:

grep -rnE "^\s*(import|from) (distutils|imp|asyncore|asynchat|cgi|cgitb|crypt|telnetlib|imghdr|pipes|uu|lib2to3|pkg_resources)\b" \
  --include="*.py" .
grep -rnE "assertEquals|assertNotEquals|assertRegexpMatches|assertRaisesRegexp|failUnless|failIf" --include="*.py" tests/

How do you upgrade, step by step?

With uv, a full upgrade test takes minutes to set up. pyenv and pip work too; the steps are the same.

# 1. Install the target interpreter and a clean environment
uv python install 3.13
uv venv --python 3.13

# 2. Re-resolve dependencies for the new version (pins move to versions that support 3.13)
uv pip compile requirements.in --python-version 3.13 -o requirements-313.txt
uv pip sync requirements-313.txt

# 3. Run the tests with deprecation warnings turned into errors
.venv/bin/python -W error::DeprecationWarning -m pytest   # on Windows: .venv/Scripts/python

Then update every place the version is written down: requires-python = ">=3.13" in pyproject.toml, the base image (FROM python:3.13-slim), the CI matrix, the Lambda runtime identifier and your local tooling. Ruff can rewrite old syntax for you with target-version = "py313" and ruff check --select UP --fix.

Roll out the way you would any risky change: deploy one service or one worker pool first, watch error rates and memory for a few days, then move the rest.

Effort, as our estimates for code with a reasonable test suite:

CodebaseTypical effortMain risk
Scripts, small Flask or FastAPI service1 to 3 daysA pinned dependency with no 3.13 release
Django app with Celery workers1 to 2 weeksMoving to Django 5.2 LTS or 6.x at the same time
Data or ML pipeline with NumPy, pandas, compiled extensions2 to 4 weekspandas 3.0 and NumPy 2 behaviour changes, not Python itself
No tests, or many unowned scriptsAdd 1 to 3 weeksWriting enough tests to trust the upgrade

How do you avoid the next Python deadline?

A new Python version arrives every October, and each one is supported for five years. A simple policy keeps you out of this situation for good:

  • Upgrade once a year, in the first quarter, to the version released two Octobers earlier. In early 2027 that means 3.13; in early 2028, 3.14. By then its wheels are everywhere and its first bug-fix releases are out.
  • Test the next version continuously. Add the newest Python to your CI matrix as an allowed failure, so you see breakages months before you need to act.
  • Automate dependency updates with Dependabot or Renovate, so library upgrades arrive in small pull requests rather than one large, risky jump.
  • Write the version down once. Keep it in pyproject.toml and a single base image, so an upgrade is a one-line change plus testing.

What this means for you: owner

Anything on Python 3.10 is unpatched as of October 2026. Ask for a list of every service, job and Lambda function and the Python version each runs, and fund one upgrade to 3.13 rather than two smaller ones.

What this means for you: developer

Run the grep above, build a 3.13 environment with uv, re-resolve dependencies and run tests with deprecation warnings as errors. Upgrade libraries in the same pass, since many already require 3.11 or 3.12.

Frequently asked questions

When did Python 3.10 reach end of life?

Python 3.10 reached end of life on October 1, 2026, five years after 3.10.0. Python 3.10.22 was the final security release, and no further fixes will be published.

When is Python 3.11 end of life?

Python 3.11 receives security fixes until about October 2027, according to PEP 664 and the Python developer's guide. AWS Lambda deprecates its python3.11 runtime earlier, on June 30, 2027.

Is it safe to keep running Python 3.10?

It keeps working, but the Python core team no longer fixes security issues in it, and major libraries such as NumPy, pandas, SciPy and Django have released versions that do not install on 3.10. Distribution-packaged Python, such as Ubuntu 22.04's, may still get vendor patches.

Which Python version should we upgrade to?

Python 3.13 for most production apps, supported until October 2029. Choose 3.14, supported until October 2030, if all your compiled dependencies publish 3.14 wheels. Upgrading to 3.11 only buys about a year.

What breaks when upgrading from Python 3.10 to 3.13?

Mostly removed standard-library modules: distutils, imp, asyncore and asynchat in 3.12, and 19 legacy modules such as cgi, crypt and telnetlib in 3.13, plus old unittest aliases like assertEquals. Code that imports pkg_resources also needs setuptools installed explicitly.

How long does a Python upgrade take?

As an estimate, a small service takes 1 to 3 days, a Django app with workers 1 to 2 weeks, and a data or machine learning pipeline 2 to 4 weeks, mostly because library upgrades such as pandas 3.0 come with it.

Do we have to upgrade if our servers run Ubuntu 22.04 LTS?

Ubuntu 22.04's system Python is 3.10, and Canonical maintains that package for the release's support period, so the operating system itself is covered. Your application is a different matter: new versions of NumPy, pandas and Django will not install on 3.10. Run the app on a separately installed 3.13 interpreter, or move to Ubuntu 24.04, whose system Python is 3.12.

Need a hand? We upgrade and support Python applications, APIs and data pipelines for businesses in the US, UK, Canada and Australia, starting with an inventory and a fixed quote. See our Python development services, application support and maintenance for keeping versions current, QA and testing for the regression suite, and AWS consulting if your Python runs on Lambda.

Nikit Nandan photo
Nikit Nandan

Strategy Director

Nikit is experienced in conducting in-depth research to stay abreast of industry trends and emerging technologies.

Related Service

Custom Software Development

Not a one-size-fits-all solution but rather a product that is specifically crafted to meet the unique needs and specifications of the client or their business.

Read more

Newsletter

Sign up for our newsletter & Stay in the loop with our latest updates delivered right to your inbox!

Tags

Let’s build your idea!

Let us help you with a free analysis and estimate. Our product expert will contact you within one business day.

 All your information is kept confidential and protected by NDA.