[Python] In Python I can't "import supervision as sv"

Discussão em 'Python' iniciado por Stack, Agosto 20, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to use my new Sony IMX500 camera to count objects in Python with my Raspberry Pi 5.

    In the sample code I have, it gets stuck at "import supervision as sv"

    I get the error "ModuleNotFoundError: No module named 'supervision'".

    I have a folder named /home/wgw1/venv_supervision

    I also tried creating a virtual environment (venv) but maybe I did it wrong?

    I can get the Sony IMX500 camera working (with some object recognition) at a command prompt, now I want to take it to the next level with python code.

    So, here's my python code - it's a simple 4 lines and then it dies:

    from picamera2 import Picamera2

    import json
    import cv2

    import supervision as sv

    ModuleNotFoundError: No module named 'supervision'

    Continue reading...

Compartilhe esta Página