Mediapipe and TFlite Support Confirmation

Hello!

I just wanted to confirm that currently Mediapipe and TFRuntime are not supported on Trixie since it comes installed with 3.13.

Is the only workaround to install 3.12 or 3.11 as well?

Indeed, the default Python 3.13 version in Raspbian Trixie prevents the installation of mediapipe and tflite-runtime, as these libraries currently only support Python 3.12 and below.

For the PiDog product, it primarily uses the basic functions of vilib. Even without mediapipe and tflite-runtime, it can still operate normally because the PiDog project does not require these two libraries.

1 Like

It seems the Vililb example I tried to run hands_detection.py needs mediapipe. I have created a virtual environment with python 3.11.9 and installed Vilib iinto the virtual environment.However when I run hands_detection.py got the following error.

(myenv) chanlhock@raspberrypi:~/myenv/vilib/examples $ sudo python3.11 hands_detection.py
Traceback (most recent call last):
File “/home/chanlhock/myenv/vilib/examples/hands_detection.py”, line 3, in
from vilib import Vilib
ModuleNotFoundError: No module named ‘vilib’

How do i enable python3.11 can find Vilib module?

Following is my virtual enviroment myenv directory

(myenv) chanlhock@raspberrypi:~/myenv $ ls
bin include lib lib64 pidog pyvenv.cfg robot-hat share vilib
(myenv) chanlhock@raspberrypi:~/myenv $

You used sudo, which causes the command to run under the root user instead of within the virtual environment myenv you created.
sudo bypasses the virtual environment’s environment variables, so Python cannot find the vilib module installed in myenv