Numpy throwing illegal instruction(core dumped) error

Hi,

My numpy was working fine with 1.19.5 version previously.

While installing tensorflow by following these instructions my numpy got downgraded to 1.16.1.

Later, I upgraded it to 1.19.5 version using pip install numpy --upgrade.
Now I am getting illegal instruction(core dumped) error while importing numpy,
Please help me resolve this issue.

Hi,
I assume that you are running your code on Jetson.
According to this thread, try this in your terminal before running your program

export OPENBLAS_CORETYPE=ARMV8

You can also put it in the same command. For instance, if you are running a python script, you would write:

OPENBLAS_CORETYPE=ARMV8 python my_script.py

If it is the same case that I had, the problem is installing the numpy with pip. If you install it with apt, you won’t need this.

apt-get install -y python-numpy python3-numpy

Again, not sure if my issue was exactly the same.

Downgrading my numpy version to 1.19.4 solved my issue.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.