Illegal instruction (core dumped) after running import tensorflow

I would use older version. Looks like your CPU does not support AVX instructions.

Quoting from their Release Page

Breaking Changes
Prebuilt binaries are now built against CUDA 9.0 and cuDNN 7.
Prebuilt binaries will use AVX instructions. This may break TF on older CPUs.

You have atleast two options:

  1. Use tensorflow 1.5 or older

  2. Build from source

Regarding your concern for differences, you will miss out on new features, but most basic features and documentations are not that different.

Leave a Comment