pip3 can't download the latest tflite-runtime

Question:

The current version of tflite-runtime is 2.11.0:

https://pypi.org/project/tflite-runtime/

Here is a testing for downloading the tflite-runtime to the tmp folder:

mkdir -p /tmp/test
cd /tmp/test

echo "tflite-runtime == 2.11.0" > ./test.txt

pip3 download -r ./test.txt

Here is the error:

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

Here is the pip3 version:

# pip3 --version
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)

What’s wrong in the above pip3 download? Why can’t it find the latest version? And how to fix?

Asked By: stackbiz

||

Answers:

If you look at the Classifiers for tflite-runtime on https://pypi.org/project/tflite-runtime/, the only Python versions supported are 3.7, 3.8 and 3.9. You are using Python 3.10, hence pip cannot find a version of the package to match it.

Answered By: PApostol

tflite-runtime 2.11.0 released packages: https://pypi.org/project/tflite-runtime/2.11.0/#files

Python 3.7, 3.8 and 3.9. Only Linux, different Intel and ARM 64-bit architectures. No Python 3.10 and no source code.

Use Python 3.9 if you don’t want to compile from sources.

Answered By: phd
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.