# Mediapipe and TFlite Support Confirmation

**URL:** <https://forum.sunfounder.com/t/mediapipe-and-tflite-support-confirmation/4071>\
**Category:** Robotic kit for Raspberry Pi\
**Created:** [November 30, 2025, 6:59pm UTC](https://forum.sunfounder.com/t/mediapipe-and-tflite-support-confirmation/4071 "2025-11-30T18:59:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@justin](https://forum.sunfounder.com/u/justin)\
**Post date:** [November 30, 2025, 6:59pm UTC](https://forum.sunfounder.com/t/mediapipe-and-tflite-support-confirmation/4071/1 "2025-11-30T18:59:50Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [December 1, 2025, 6:52am UTC](https://forum.sunfounder.com/t/mediapipe-and-tflite-support-confirmation/4071/2 "2025-12-01T06:52:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![chanlhock](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/chanlhock/32/2370_2.png) [@chanlhock](https://forum.sunfounder.com/u/chanlhock)\
**Post date:** [April 21, 2026, 3:30am UTC](https://forum.sunfounder.com/t/mediapipe-and-tflite-support-confirmation/4071/3 "2026-04-21T03:30:32Z")

</div>

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 $

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [April 23, 2026, 6:04am UTC](https://forum.sunfounder.com/t/mediapipe-and-tflite-support-confirmation/4071/4 "2026-04-23T06:04:43Z")

</div>

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
