Face Recognition With Raspberry Pi and OpenCV

Hey @Michael313839,

It sounds like you’ve gotten your Virtual Environments sorted, which is the most common problem we see around here.

I am curious about that wheel error you were getting during your pip install. Do you have the exact error message that you were getting?

Jane,
OK, I’ll have to rebuild a SD card and try it again and capture the exact error message. But it will be a couple of days before I can get to that.

Thanks again,
Michael

1 Like

Hey, I’m trying to install the face_recognition library on a Raspberry Pi 5 (2GB RAM). I increased the swap to 2048 MB, and I’m currently using Raspberry Pi OS Trixie with Python 3.13.5. However, I’m facing errors during installation, specifically while building the dlib dependency (Error exit code1).

I also tried switching the OS to Bookworm 64-bit, but I’m still unable to install face_recognition. Does anyone have suggestions on how to resolve this issue?

Hey @Basil317711, welcome to the forums!

Could you post the whole terminal installation so we can see a bit more context.

Also thank you for trying Bookworm, that was going to be our first troubleshooting step!

Cheers!