python - import tensorflow error - return importlib.import_module(mname) -


so, i've installed gpu version of tensorflow, cuda , cudnn. believe have set correctly when run 'import tensorflow tf' error:

>>> import tensorflow tf traceback (most recent call last):   file "c:\users\john\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper     return importlib.import_module(mname)   file "c:\users\john\appdata\local\programs\python\python36\lib\importlib\__init__.py", line 126, in import_module     return _bootstrap._gcd_import(name[level:], package, level)   file "<frozen importlib._bootstrap>", line 978, in _gcd_import   file "<frozen importlib._bootstrap>", line 961, in _find_and_load   file "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked   file "<frozen importlib._bootstrap>", line 648, in _load_unlocked   file "<frozen importlib._bootstrap>", line 560, in module_from_spec   file "<frozen importlib._bootstrap_external>", line 922, in create_module   file "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed importerror: dll load failed: specified module not found.  during handling of above exception, exception occurred:  traceback (most recent call last):   file "c:\users\john\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in <module>     tensorflow.python.pywrap_tensorflow_internal import *   file "c:\users\john\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module>     _pywrap_tensorflow_internal = swig_import_helper()   file "c:\users\john\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper     return importlib.import_module('_pywrap_tensorflow_internal')   file "c:\users\john\appdata\local\programs\python\python36\lib\importlib\__init__.py", line 126, in import_module     return _bootstrap._gcd_import(name[level:], package, level) modulenotfounderror: no module named '_pywrap_tensorflow_internal'  during handling of above exception, exception occurred:  traceback (most recent call last):   file "<stdin>", line 1, in <module>   file "c:\users\john\appdata\local\programs\python\python36\lib\site-packages\tensorflow\__init__.py", line 24, in <module>     tensorflow.python import *   file "c:\users\john\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>     tensorflow.python import pywrap_tensorflow   file "c:\users\john\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 52, in <module>     raise importerror(msg) importerror: traceback (most recent call last):   file "c:\users\john\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper     return importlib.import_module(mname)   file "c:\users\john\appdata\local\programs\python\python36\lib\importlib\__init__.py", line 126, in import_module     return _bootstrap._gcd_import(name[level:], package, level)   file "<frozen importlib._bootstrap>", line 978, in _gcd_import   file "<frozen importlib._bootstrap>", line 961, in _find_and_load   file "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked   file "<frozen importlib._bootstrap>", line 648, in _load_unlocked   file "<frozen importlib._bootstrap>", line 560, in module_from_spec   file "<frozen importlib._bootstrap_external>", line 922, in create_module   file "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed importerror: dll load failed: specified module not found.  during handling of above exception, exception occurred:  traceback (most recent call last):   file "c:\users\john\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in <module>     tensorflow.python.pywrap_tensorflow_internal import *   file "c:\users\john\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module>     _pywrap_tensorflow_internal = swig_import_helper()   file "c:\users\john\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper     return importlib.import_module('_pywrap_tensorflow_internal')   file "c:\users\john\appdata\local\programs\python\python36\lib\importlib\__init__.py", line 126, in import_module     return _bootstrap._gcd_import(name[level:], package, level) modulenotfounderror: no module named '_pywrap_tensorflow_internal'   failed load native tensorflow runtime. 

i have tried these steps no luck. on windows, running "import tensorflow" generates no module named "_pywrap_tensorflow" error

any appreciated - i'm new both python , tensorflow. john

edit: found tensorflow self checker , ran gives me following error: https://www.screencast.com/t/ctx8oettute going try reinstalling cudnn now.

after few hours of trying things, appears came down having wrong version of cudnn insatlled. required cudnn v6.0 (april 27, 2017), cuda 8.0 rather cudnn v7.0.2 (sept 7, 2017), cuda 8.0.

cheers john


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -