pip3无法下载最新的tflite-runtime

问题描述 投票:0回答:3

tflite-runtime
的当前版本是
2.11.0

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

这里是下载

tflite-runtime
tmp
文件夹的测试:

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

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

pip3 download -r ./test.txt

错误如下:

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

这是pip3版本:

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

上面有什么问题

pip3 download
?为什么找不到最新版本?以及如何解决?

python ubuntu pip tensorflow-lite
3个回答
3
投票

tflite-runtime 2.11.0 发布的软件包:https://pypi.org/project/tflite-runtime/2.11.0/#files

Python 3.7、3.8 和 3.9。仅Linux、不同的Intel 和ARM 64 位架构。没有 Python 3.10,也没有源代码。

如果您不想从源代码编译,请使用Python 3.9。


3
投票

如果您在

https://pypi.org/project/tflite-runtime/
上查看 tflite-runtime 的分类器,唯一支持的 Python 版本是 3.7、3.8 和 3.9。您使用的是 Python 3.10,因此
pip
无法找到与其匹配的包版本。


0
投票

更新答案:对于那些将来可能遇到此问题的人

错误仍然存在: Python 3.10 已添加到

tflite-runtime version 2.13.0
支持的 Python 版本列表中,如果您在软件包网站
此处
查看 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

解决方案: 这是一个很好的解决方案,可以在 Stackoverflow 上发布:

  • 对于那些运行 Debian Linux 或 Debian 衍生版本(包括 Raspberry Pi OS)的用户,您应该从我们的 Debian 软件包存储库进行安装。这需要您向系统添加新的存储库列表和密钥,然后按如下方式安装:
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

您可以在 Stackoverflow 上此处查看原始答案。

感谢答案的原作者Unmitigated

© www.soinside.com 2019 - 2024. All rights reserved.