Installing Ultralytics on a Raspberry Pi 4b

Hi! I’m looking for help with installing Ultralytics on my Raspberry Pi 4b. I get a dependency conflict error when trying to install, seemingly because all the package versions have different dependencies. I am trying to specify a package version to mitigate this but that hasn’t been working. I’ve tried

pip install ultralytics[export]==8.3.0

to only install one version. Is there a way I can do this? I’ve already created the virtual environment and and made sure pip is up to date.

Maybe you could try the ARM64 Docker image?

Thanks for your help. I have set up without Docker. Is there a way to do it without?

If you don’t want to use Docker, look at the set up steps the Docker image uses. Those steps would be similar to the way you’d want to set things up, but if you don’t want to use the git repo install, you can use the pip install instead.

Start with

apt-get update && \
    apt-get install -y --no-install-recommends \
    python3-pip git zip unzip wget curl htop gcc libgl1 libglib2.0-0 libpython3-dev gnupg g++ libusb-1.0-0 \
    && rm -rf /var/lib/apt/lists/*

Then do your pip install.

Also, double check this guide for more details on the set up Raspberry Pi - Ultralytics YOLO Docs