Skip to content Skip to sidebar Skip to footer

How To Fix Illegal Instruction (core Dumped)

Hi i am trying to fix this issue when i run python3 brain.py below i get this error Illegal instruction (core dumped) from imageai.Prediction import ImagePrediction import os execu

Solution 1:

I had the same problem. It seems that this problem is for older CPUs. As you said, one solution is with a downgrade to tensorflow 1.5.0.

The other solution (that one that worked for me) is to build tensorflow from source.

I compiled the version 2.1.0, it took me around 25 hours with a Intel(R) Pentium(R) Dual CPU T2370 @ 1.73GHz and 2GB RAM.

You would need to install the proper version of Bazel. Find below the complete instructions from tensorflow:

https://www.tensorflow.org/install/source

I needed to add a swap file of 4GB. Otherwise you will go out of memory during the compilation.

Anyway, I have uploaded my .whl file in case you don't want to expend 25 hours (or more) to compile your own file:

https://drive.google.com/open?id=1ISgMcDiCw5W5MFvS5Zbme6pNBbA7xWMH

Post a Comment for "How To Fix Illegal Instruction (core Dumped)"