Fix TensorFlow ImportError:DLL load failed with error code -1073741795

By | January 11, 2020

When we have installed tensorflow by using whl file, we have got an error: ImportError: DLL load failed with error code -1073741795. Why this error occur and how to fix it. We will discuss these two topics in this tutorial.

First, we have installed tensorflow, then we will test we have installed it successfully or not.

import tensorflow as tf

Then we will get this error:

ImportError DLL load failed with error code -1073741795

Why this error occur?

The reason is your cpu does not support AVX instructions.

How to fix this error?

You should install a version of tensorflow withou AVX instructions.

You can find these tensorflow versions in here:

https://github.com/fo40225/tensorflow-windows-wheel

As to us, we select tensorflow 1.11.0 cpu sse2 version. You can find it in here:

https://github.com/fo40225/tensorflow-windows-wheel/tree/master/1.11.0/py37/CPU/sse2

After having installed it, this import error disappeed.

Leave a Reply

Your email address will not be published. Required fields are marked *