tensorflow: Windows 10 Failed to load the native TensorFlow runtime
Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information
OS Platform and Distribution Windows 10 64 bit TensorFlow installed from (source or binary): pip install tensorflow TensorFlow version: 1.12.0 Python version:3.6.5 GPU model and memory: Geforce 150mx 4gb Describe the problem I’m unable to import keras using “Tensorflow backend” when I try to import “from keras.models import Sequential” I get the error shown bellow
These are the steps that I did when I installed the libraries 1- conda create -n tensorflow python=3.5 anaconda.
2- activate tensorflow.
3- conda install theano.
4- conda install mingw libpython.
5-pip install tensorflow.
6- pip install keras.
7- conda update --all
8- pip install tensorflow-gpu
Other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
Error shown:
`from keras.models import Sequential Using TensorFlow backend. Traceback (most recent call last):
File “”, line 1, in from keras.models import Sequential
File “C:\Users\MHD\Anaconda3\lib\site-packages\keras_init_.py”, line 3, in from . import utils
File “C:\Users\MHD\Anaconda3\lib\site-packages\keras\utils_init_.py”, line 6, in from . import conv_utils
File “C:\Users\MHD\Anaconda3\lib\site-packages\keras\utils\conv_utils.py”, line 9, in from … import backend as K
File “C:\Users\MHD\Anaconda3\lib\site-packages\keras\backend_init_.py”, line 89, in from .tensorflow_backend import *
File “C:\Users\MHD\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py”, line 5, in import tensorflow as tf
File “C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow_init_.py”, line 24, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File “C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow\python_init_.py”, line 49, in from tensorflow.python import pywrap_tensorflow
File “C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”, line 74, in raise ImportError(msg)
ImportError: Traceback (most recent call last): File “C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”, line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File “C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”, line 28, in _pywrap_tensorflow_internal = swig_import_helper() File “C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”, line 24, in swig_import_helper _mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description) File “C:\Users\MHD\Anaconda3\lib\imp.py”, line 243, in load_module return load_dynamic(name, filename, file) File “C:\Users\MHD\Anaconda3\lib\imp.py”, line 343, in load_dynamic return _load(spec) ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace above this error message when asking for help.`
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 20 (4 by maintainers)
@RajdeepPy @ibrahimabob @osama12sy @Saran-nns @ymodak @MohammadDabbas ok so i did a research on this erro and i found that tensorflow only support python 3.5x & 3.6x so download and install one of these 2 versions the install the packages you need and run the program. for me it worked
I also have the same problem I have python 3.6.8 cpu version my operating system is windows 10 64bit
During handling of the above exception, another exception occurred:
Failed to load the native TensorFlow runtime.