tensorflow: pip install tflite-runtime fails on Fedora 36, possibly due to Python 3.10

Click to expand!

Issue Type

Build/Install

Source

binary

Tensorflow Version

2.10

Custom Code

No

OS Platform and Distribution

Linux Fedora 36

Mobile device

No response

Python version

3.10.7

Bazel version

No response

GCC/Compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current Behaviour?

$ cat /etc/os-release | head -2
NAME="Fedora Linux"
VERSION="36 (Workstation Edition)"

$ python --version
Python 3.10.7

$ python3 -m pip install tflite-runtime

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

NB that python --version on this Fedora Fedora 36 (Workstation) says Python 3.10.7

… and a friend of mine pointed out that this could well be because on https://pypi.org/project/tflite-runtime/ we can see Python 3.7, 3.8, 3.9 - but not 3.10, yet. (Whereas e.g. https://pypi.org/project/numpy/ already has 3.10 and 3.11, and I CAN install that.)

Perhaps you would like to consider relaxing those version constraints, if that’s possible? Or publish tflite for more recent Python versions already as well? Please let me know if this is easy enough to contribute a PR for an test - I’m happy to help! (Full disclosure: I’m a Googler at work, playing with this on the weekend at home on a personal computer.)

In the mean time, I’ll try to work around this with https://www.tensorflow.org/lite/guide/build_cmake_pip, or perhaps just use full Tensorflow instead of Lite and learn 😉 how to adapt project-keyword-spotter…

Background: I’m a new and noob user and wanted to figure out how to run e.g. https://github.com/google-coral/project-keyword-spotter/ on my workstation instead of on my Coral Dev board. https://www.tensorflow.org/lite/guide/python says that I should do python3 -m pip install tflite-runtime but this fails on Fedora 36 (Workstation), as described above.



### Standalone code to reproduce the issue

```shell
You would have to try on Fedora.

I could build a simple reproduce using a container, if that would of any use for CI of this project?

Relevant log output

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 20 (5 by maintainers)

Most upvoted comments

Left a comment on https://github.com/tensorflow/tensorflow/issues/56137#issuecomment-1289275446 We need a community contribution to fix the issue.

For the changes needed to support Python 3.10 wasn’t included in r2.12 branch. The Python 3.10 package will be available from r2.13 releases.