Cannot install libraries in Raspberry pi (WPIlibpi)

We are trying to detect Aruco markers through the robot’s camera.

And we need the OpenCV with the full functionalities.

But we can’t install new packages in the raspberry pi with the WPIlibpi image.

When installing a package with pip3, it’s always killed at 99 %.

What should we do?

How much RAM does your Pi have? It looks like pip3 can be quite memory-intensive.

When my team used Raspberry Pi to implement our own vision we also encountered this problem and solved it by building it from source. Note that you install the latest release.
It is not a pleasant process, but this is the process which helped us. good luck!