简体   繁体   English

Mediapipe 无法安装在树莓派零 2w 上

[英]Mediapipe cant be installed on raspberry pi zero 2w

I am building a project, and I need to use mediapipe, Im using Ubuntu Server on it, but when I install the mediapipe library I got this error:我正在构建一个项目,我需要使用 mediapipe,我在其上使用 Ubuntu Server,但是当我安装 mediapipe 库时出现此错误:

Traceback (most recent call last):
  File "/home/project/core.py", line 4, in <module>
    import AppManager
  File "/home/project/AppManager.py", line 10, in <module>
    import mediapipe as mp
  File "/usr/local/lib/python3.10/dist-packages/mediapipe/__init__.py", line 16, in <module>
    from mediapipe.python import *
  File "/usr/local/lib/python3.10/dist-packages/mediapipe/python/__init__.py", line 17, in <module>
    from mediapipe.python._framework_bindings import resource_util
ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings'

So IDK what to do, I attempted installing bazel with a tutorial, but its give an error when I compile that, so I dont know what to do... I need help所以 IDK 该怎么做,我尝试用教程安装 bazel,但是当我编译它时它给出了一个错误,所以我不知道该怎么做......我需要帮助

I have attempted installing with:我尝试安装:

pip install mediapipe-rpi3 and pip install mediapipe-rpi4 pip install mediapipe-rpi3 和 pip install mediapipe-rpi4

And when I run my program, that's give that error, I researched and I found what my error will be because I have not installed bazel, so I attempted installing, with not luck, when I attempt to install my output folder gives me nothing...当我运行我的程序时,出现了那个错误,我进行了研究,发现我的错误是什么,因为我没有安装 bazel,所以我尝试安装,但运气不好,当我尝试安装我的输出文件夹时什么也没给我。 ..

IDK if bazel its necessary, because when I installed the mediapipe via pip, it installs... I am really confused and if there is not solution, I am going to restructure my code IDK 如果 bazel 是必要的,因为当我通过 pip 安装 mediapipe 时,它​​会安装......我真的很困惑,如果没有解决方案,我将重组我的代码

and Its my first time here, Hi这是我第一次来这里,嗨

I successfully installed mediapipe on rpi zero 2 w, but i'm using Debian 10 on it.我在 rpi zero 2 w 上成功安装了 mediapipe,但我使用的是 Debian 10。 Unluckily, i can only get ~6 fps max with its hand tracking solution.不幸的是,我只能通过其手部跟踪解决方案获得约 6 fps 的最大值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM