The TensorFlow library was compiled to use AVX2 instructions, but these aren't available on your machine - Solving this issue

I installed lambda stack. When I run Keras or Tensorflow, it gives me this error -

F tensorflow/core/platform/cpu_feature_guard.cc:37] The TensorFlow library was compiled to use AVX2 instructions, but these aren’t available on your machine.

Is there any solution to this ?

My system Details:
OS - Ubuntu 18.04.2 LTS
Processor - Intel i7 2600s (8 GB RAM)
GPU - Zotac Nvidia GTX 1660 (6GB)

Yea your cpu is pretty old. Your CPU just doesnt support AVX2. YOu have to uninstall the tensorflow cpu version and install tensorflow-gpu. That should probably work.

Hi There

I have been struggling with the same issue. Am running a VM in unRAID of Ubuntu.

I did a “sudo pip3 show tensorflow” and didnt get anything but did when I tried “sudo pip3 show tensorflow-gpu” I got an output of version and so on, indicating I already have the GPU build installed.

Any other suggestions?

Thanks in advance!