Illegal instruction (core dumped)

I wonder if the 1.19.5 version of numpy is still installed on your system somewhere. You may want to run pip3 uninstall numpy && sudo pip3 uninstall numpy first.

Or you can workaround the issue with 1.19.5 by running export OPENBLAS_CORETYPE=ARMV8 before you run python3:

$ export OPENBLAS_CORETYPE=ARMV8
$ python3
>>> import numpy
>>> import torch
6 Likes