Unable to import TensorFlow because of AVX instruction

I attempted to install TensorFlow on Ubuntu but encountered an error when trying to import it. The error message displayed was “illegal instruction core dumped”. According to Stack Overflow (stack overflow post link), this error could be due to the CPU not having the AVX instruction installed. The suggestion provided was to compile TensorFlow from scratch without AVX flags. I would like to know how to do this.

Hi @Surya_Elxsi, I don’t think you can use Tensorflow with the CPU not having support for AVX instructions even if you build the Tensorflow from source. Thank You.