Pycoral:但不会安装

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

尝试安装 pycoral 时,出现此错误:

~$ sudo apt-get install python3-pycoral
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3-pycoral : Depends: python3-tflite-runtime (= 2.5.0.post1) but it is not going to be installed
                   Depends: python3 (< 3.10) but 3.11.2-1+b1 is to be installed
E: Unable to correct problems, you have held broken packages.

适用于 Edge TPU 的 M.2 m+b 密钥版本。解决这个问题的最佳方法是什么?我可以只安装 python 3.10 与 3.11 python 一起安装,还是需要完全恢复到 3.10,或者我完全误解了这里发生的情况?

Debian 12,内核 6.1.0-17-amd64。

python debian apt google-coral pycoral
1个回答
0
投票

文档说:

如果您使用基于 Debian 的 Linux 系统(包括 Ubuntu、Raspberry Pi OS 和 Mendel),则应使用以下 Debian 软件包安装所有软件库,而不是使用其他 pip 或 ZIP 软件包。

如果您使用的是 Debian 系统,而不是带有 Mendel 的 Coral 板,请首先添加我们的软件包存储库:

# None of this is needed on Coral boards # This repo is needed for almost all packages below echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list # This repo is needed for only python3-coral-cloudiot and python3-coral-enviro echo "deb https://packages.cloud.google.com/apt coral-cloud-stable main" | sudo tee /etc/apt/sources.list.d/coral-cloud.list curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - sudo apt-get update Then you can install packages from the below table like this: sudo apt-get install <package_name>
    
© www.soinside.com 2019 - 2024. All rights reserved.