Refer to
I.e. tries to compile numpy from source. On Ubuntu 22.04, moving opencv-python to conda dependencies via opencv solves the issue.
This issue may in fact be caused by opencv-python being installed before numpy or numpy>=2.0. Also see https://pypi.org/project/numpy/#history
On another note, diffrp-nvdiffrast may be installing some cuda stuff. This conda env file seems seriously broken ...