onnxruntime icon indicating copy to clipboard operation
onnxruntime copied to clipboard

python 3.14 support

Open ddatsh opened this issue 2 months ago • 8 comments

Describe the issue

pip install onnxruntime ERROR: Could not find a version that satisfies the requirement onnxruntime (from versions: none) ERROR: No matching distribution found for onnxruntime

To reproduce

pip install onnxruntime

Urgency

No response

Platform

Windows

OS Version

11

ONNX Runtime Installation

Other / Unknown

ONNX Runtime Version or Commit ID

latest

ONNX Runtime API

Python

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

ddatsh avatar Oct 15 '25 03:10 ddatsh

The onnxruntime package (required by chromadb, which is required by crewai) doesn't have pre-built wheels for Python 3.14.0 yet. This means that any project that uses crewai and wants to upgrade its Python env to 3.14 would not be able to do so.

amarjeet avatar Oct 15 '25 09:10 amarjeet

we are working on it. Hopefully, we will have nightly package soon.

tianleiwu avatar Oct 17 '25 17:10 tianleiwu

Hello, is there any news for the package ?

cbornet avatar Oct 22 '25 21:10 cbornet

We wish to experience Python 3.14's free threading mode and aim to release an ONNX Runtime version compatible with Python 3.14 FT as soon as possible. We extend our sincere gratitude to all contributors!

yuanmaitian avatar Oct 23 '25 03:10 yuanmaitian

Thanks for the answer. Just want to point that even if FT is nice, the most important issue right now is to not have binaries for Python 3.14. I hope that this is not delayed by support of FT. A lot of packages transitively depend on onxxruntime. Congrats for that ! But also all these packages are currently blocked to 3.13 because of this issue.

cbornet avatar Oct 23 '25 17:10 cbornet

@yuanmaitian

We wish to experience Python 3.14's free threading mode and aim to release an ONNX Runtime version compatible with Python 3.14 FT as soon as possible. We extend our sincere gratitude to all contributors!

That sounds very exciting! Can we expect a performance increase from the free-threaded version?

Additional question though: as far as I know, the GIL-enabled version will still be the default/standard for Python 3.14. Does that imply onnxruntime will have two different builds for 3.14? A GIL-enabled build and a free-threaded build? Or are you moving directly to free-threaded only?

@tianleiwu can you share some information about the plan?

Daniel451 avatar Nov 05 '25 18:11 Daniel451

@tianleiwu can you share some information about the plan?

See https://github.com/microsoft/onnxruntime/issues/26473#issuecomment-3492691567 for latest update.

tianleiwu avatar Nov 05 '25 18:11 tianleiwu

I wonder if #26547 fixes this? 🤔

Errorbot1122 avatar Dec 08 '25 03:12 Errorbot1122

+1

leidix avatar Dec 19 '25 11:12 leidix

Hello, Is there visibility for when there will be a release ?

cbornet avatar Dec 19 '25 16:12 cbornet

python 3.14 support will be added in next release (v1.24 in last week of Jan by estimation). At the meantime, you can try nightly package for Windows/Linux. MacOS support will be added later.

tianleiwu avatar Dec 19 '25 18:12 tianleiwu