I got the solution for the above problem just force install the numpy version 1.24.4, restart the kernel and it works well.