Reputation: 1438
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?
Upvotes: 7
Views: 11025
Reputation: 229
Update to the answer: For those that might run into this issue in the future
Error still persist:
Python 3.10 has been added to the list of supported versions of Python for tflite-runtime version 2.13.0
, if you look at the Classifiers for tflite-runtime
on the package website here but the error still persists.
Error message(s):
ERROR: Could not find a version that satisfies the requirement tflite-runtime (from versions: none)
ERROR: No matching distribution found for tflite-runtime
Solution: Here is a nice solution that works posted here on Stackoverflow:
echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install python3-tflite-runtime
pip3 install --extra-index-url https://google-coral.github.io/py-repo/ tflite_runtime
You can check the original answer out here on Stackoverflow.
Credit to the original author of the answer Unmitigated
Upvotes: 2
Reputation: 94667
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.
Upvotes: 3
Reputation: 2292
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.
Upvotes: 3