Answers for "illegal instruction (core dumped) when importing numpy"

1

>>> import numpy Illegal instruction (core dumped)

Confirmed. Just for the record, this solution (overriding environment variable) allows numpy to be loaded despite the wrong CPU detection:

>>> import os
>>> os.environ["OPENBLAS_CORETYPE"] = "nehalem"
>>> import numpy as np
>>>
Posted by: Guest on May-06-2021

Code answers related to "illegal instruction (core dumped) when importing numpy"

Python Answers by Framework

Browse Popular Code Answers by Language