Dead Kernel while running NGSolve

I have tried installing NGsolve in Jupyter notebook in my macbook M1 but everytime I run the code

from ngsolve import *
from ngsolve.webgui import Draw

It says dead kernel and the kernel restarts.

When i tried installing through the terminal it says illegal hardware instruction.

Can anyone please help me in resolving this issue as I need to run ngsolve locally on my macbook.

how did you install ngsolve? Please use the pip installer on a up to date python.

ya i used the following code

pip install jupyter numpy scipy matplotlib
pip install --pre ngsolve
pip install webgui_jupyter_widgets