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

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

post by Asu619 on May 13, 2019

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)


post by leonnowsden on May 17, 2019

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


post by HardwareWolf on Dec 16, 2019

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 didn't 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!