Skip to content Skip to sidebar Skip to footer

Tensorflow Installation On Windows: Dll Load Failed While Importing _pywrap_tensorflow_internal

I ran through the TensorFlow object detection installation on Windows. https://medium.com/riow/tensorflow-object-detection-on-windows-ad10bfde217c After successfully installing Ten

Solution 1:

tldr;

You need to install the C++ redistributable mentioned on the install pagebefore installing TensorFlow so that TensorFlow can use it to generate code at install time.

Details:

I'm not an expert but it sounds like this was key:

The pywrap_tensorflow_internal.py module you are missing appears to me to be a SWIG-generated python interface to a C++ library, or something of that nature. My guess is, that file gets generated when you install TensorFlow (it reminds me of how some Ruby gems have to compile C++ when you install them, for whatever that's worth). Since you don't have that generated file, my guess is that the C++ package mentioned on the TensorFlow install page is needed for that code generation, so you need to have the C++ package installed before installing TensorFlow.

Totally a guess, but perhaps you installed the C++ package after TF. In that case, you should be able to uninstall TF, install the C++ package, and then install TF again.

Maybe a lingering question is if there were any indicative error messages on installing TF about the missing C++ package and if not, maybe there should be.

Post a Comment for "Tensorflow Installation On Windows: Dll Load Failed While Importing _pywrap_tensorflow_internal"