'Illegal instruction while importing scipy spatial distance in python scripts

When importing cdist from scipy.spatial.distance I get Illegal instruction (core dumped) Running it with dbg I get

0x00007f8f87f663c0 in ffi_prep_cif() from /u/sw/toolchains/gcc-glibc/11.2.0/base/lib/libffi.so.8

I already tried reinstalling scipy and lumpy libraries (they said so) nothing worked and I'm still stucked WW



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source