numpy: AssertionError: CUDA_HOME is not set

To get Numpy to build on RHEL9, you need to install nvcc and export CUDA_HOME, e.g: $ sudo dnf install -y rpm -ql cuda-nvcc-13-0 $ sudo ln -s &#x2F;usr&#x2F;local&#x2F;cuda-13.0 &#x2F;usr&#x2F;local&#x2F;cuda $ pip install numpy