Failed to load the native TensorFlow runtime [Solved]

Preface

Due to the recent hard disk failure, a hard disk has been replaced, and the system has been re installed. The system version is windows 10 Pro 1703. After installing the system, I installed docker and python 3.5.3, and then used PIP install tensorflow . If there is no accident, I can Import tensorflow as TF , but unfortunately, it reported a mistake – failed to load the native tensorflow runtime . This makes me puzzled. Why did the installation go wrong

Solution steps

After multi-party search, it seems that some dependencies are not installed properly

Using pip to install tensorflow: PIP install tensorflow install tensorflow

Download Visual C + + redistribute 2015 x64 and install. Click me to download, if the address is invalid, please download by yourself

PIP installs numpy + MKL. In order to ensure stable download, WHL download is provided here. Click me to download numpy-1.13.0 + mkl-cp35-cp35m-win_ amd64.whl

After downloading, open the folder, enter PIP install in CMD, then drag WHL in the folder to CMD, and press enter to run

PIP can install SciPy by PIP install SciPy , or by using WHL. Click me to download scipy-0.19.0-cp35-cp35m-win_ amd64.whl

After downloading, open the folder, enter PIP install in CMD, then drag WHL in the folder to CMD, and press enter to run

Open the CMD and enter PIP install Matplotlib

Enter Python in CMD, and then enter Import tensorflow as TF you will find that this error is no longer reported

Postscript

I have encountered this error once, but that is a special case. Under tensorflow source code, if you use CMD to enter Python and import tensorflow, you will report this error. If you go out of CD, you will not report an error

Similar Posts: