I am trying to run a yolov8 model on my Raspberry Pi and have installed ultralytics using pip3 install ultralytics command. But whenever I try to import YOLO in Thonny using from ultralytics import YOLO my terminal just outputs Process ended with exit code -4. Can anyone help me resolve this issue?
from ultralytics import YOLO
model = YOLO("best.pt") #my trained yolov8 model
model.predict(source = 0, show = True)
Process ended with exit code -4