Sudo python3 setup.py install : Illegal instruction

when using “sudo python3 setup.py install” i get Illegal instruction( "sudo python works fine " ) ! i solved the problem a couple of times by using "python3 setup.py install --user " but this time I need “sudo python3” to work to install freenect wrapper for python3 ! no problems using the command on my ubuntu pc machine but this error occurs on my jetson nano 2gb !! any help i really need this to work it the piece for a project

1 Like

Hi,

The “Illegal instruction” error is caused by numpy v1.19.x.

In general, you can fix it via setting OPENBLAS_CORETYPE=ARMV8.
Please noted that you will need to set the environment parameter for root as well.

For example:

$ sudo OPENBLAS_CORETYPE=ARMV8 python3 my.py

Thanks.