Answer the question
In order to leave comments, you need to log in
Failed to load the native TensorFlow runtime. How to decide?
Python version = 3.8.3
pip version = 20.1.1 TensorFlow
version = 1.5.0
Windows 10
I can’t put a higher version, otherwise the code that is used in ImageAI does not work.
Here is the error:
import tensorflow
Traceback (most recent call last):
File "C:\Users\Tojo Hideki\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18 , in swig_import_helper
fp, pathname, description = imp.find_module('_pywrap_tensorflow_internal', [dirname(__file__)])
File "C:\Users\Tojo Hideki\AppData\Local\Programs\Python\Python38\lib\imp.py" , line 296, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Tojo Hideki\AppData\Local\Programs\Python\Python38\lib\site -packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Tojo Hideki\AppData\Local\Programs\Python\Python38\lib\site-packages\ tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Tojo Hideki\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal. py", line 20,in swig_import_helper
import _pywrap_tensorflow_internal
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Tojo Hideki\AppData\Local \Programs\Python\Python38\lib\site-packages\tensorflow\__init__.py", line 24, in
from tensorflow.python import *
File "C:\Users\Tojo Hideki\AppData\Local\Programs\Python\Python38\ lib\site-packages\tensorflow\python\__init__.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Tojo Hideki\AppData\Local\Programs\Python\Python38\lib\site-packages \tensorflow\python\pywrap_tensorflow.py",line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Tojo Hideki\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
fp, pathname, description = imp.find_module('_pywrap_tensorflow_internal', [dirname(__file__)])
File "C:\Users\Tojo Hideki\AppData\Local\Programs\Python\Python38\lib\imp. py", line 296, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Tojo Hideki\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C :\Users\Tojo Hideki\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Tojo Hideki \AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
import _pywrap_tensorflow_internal
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
Seehttps://www.tensorflow.org/install/install_sources...
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
Answer the question
In order to leave comments, you need to log in
there is no _pywrap_tensorflow_internal binary
if there is a file itself, maybe it has the wrong architecture. In short, it was not possible to install - in Windows this is a known problem in pypi there is no binary and in Windows there is no compiler - I downloaded the source but stumbled when trying to compile.
Python needs x64, Windows x64, tensor is also, oddly enough, x64 (there is no other way)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question