Installation of YOLO creates problems with DroneKit-Python Flight Scripts on Raspberry Pi

I found this thread which describes the same issue as yours:

Also this issue:

So the solution seems to be to upgrade simplejpeg. You can do that alongside Ultralytics installation by running pip install -U ultralytics simplejpeg.