Skip to content

Support Python 3.12 #62003

@MartinNowak

Description

@MartinNowak

Issue type

Support

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

binary

TensorFlow version

tf 2.15.0.dev

Custom code

No

OS platform and distribution

Linux Fedora 39

Mobile device

No response

Python version

3.12

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

No Python3.12 compatbility and wheels.

This issue can be used as a tracking issue. This includes:

  • TensorFlow builds fully on Python 3.12
  • All TensorFlow tests pass on Python 3.12
  • All CI is run and green on Python 3.12
  • Wheels are uploaded to PyPI for tf-nightly
    • Linux
    • macOS
    • Windows
  • Wheels are uploaded to PyPI for at least one TensorFlow release

Standalone code to reproduce the issue

python3.12 -m venv venv
source venv/bin/activate
pip install -U pip setuptools wheel
pip install tf-nightly --pre

Relevant log output

ERROR: Could not find a version that satisfies the requirement tf-nightly (from versions: none)
ERROR: No matching distribution found for tf-nightly

Prior editiions:
- [2011/3.11](https://github.com/tensorflow/tensorflow/issues/58032#issuecomment-1279963648)
- [2010/3.10](https://github.com/tensorflow/tensorflow/issues/51776#issuecomment-934569048)
- [2009/3.9](https://github.com/tensorflow/tensorflow/issues/44485)
- [2008/3.8](https://github.com/tensorflow/tensorflow/issues/33374)

TF 2.14 has just shipped, meaning we'll likely have to wait for TF 2.15/2.16 again.

Metadata

Metadata

Labels

comp:coreissues related to core part of tensorflowstat:awaiting tensorflowerStatus - Awaiting response from tensorflowertype:supportSupport issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions