Home > other >  Solution: open after installed the anaconda jupyter notebook after input import tensorflow as tf the
Solution: open after installed the anaconda jupyter notebook after input import tensorflow as tf the

Time:10-06

After installed the anaconda and tensorflow open jupyter notebook after input the import tensorflow as tf appeared the following error:

ERROR: root: Internal Python ERROR in the inspect module.
Below is the traceback the from this internal error.

ERROR: root: Internal Python ERROR in the inspect module.
Below is the traceback the from this internal error.

Traceback (the most recent call last) :
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow_core \ python \ pywrap_tensorflow py", 58, line in & lt; module>
The from tensorflow. Python. Pywrap_tensorflow_internal import *
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow_core \ python \ pywrap_tensorflow_internal py", 28, the line in & lt; module>
_pywrap_tensorflow_internal=swig_import_helper ()
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow_core \ python \ pywrap_tensorflow_internal py", line 24, in swig_import_helper
_mod=imp. Load_module (' _pywrap_tensorflow_internal, fp, the pathname, description)
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ imp py", line 242, in the load_module
Return load_dynamic (name, filename, file)
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ imp py", line 342, in load_dynamic
Return _load (spec)
ImportError: DLL load failed: could not find the specified module,
During handling of the above exception, another exception occurred:

Traceback (the most recent call last) :
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ IPython \ core \ interactiveshell py", line 2881, in run_code
Exec (code_obj, self user_global_ns, self user_ns)
The File "& lt; Ipython - input - 1-41389 fad42b5 & gt;" , line 1, in
The import tensorflow as tf
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow \ set py", line 101, in & lt; module>
The from tensorflow_core import *
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow_core \ set py", line 40, in & lt; module>
The from tensorflow. Python. Tools import module_util as _module_util
File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow \ set py", line, 50 in __getattr__
The module=self. _load ()
File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow \ set py", line 44, in _load
The module=_importlib. Import_module (self. __name__)
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ importlib \ set py", line 126, in import_module
Return _bootstrap. _gcd_import (name [level:], package, level)
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow_core \ python \ set py", line 49, in & lt; module>
The from tensorflow. Python import pywrap_tensorflow
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow_core \ python \ pywrap_tensorflow py", line 74, in & lt; module>
Raise ImportError (MSG)
ImportError: Traceback (the most recent call last) :
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow_core \ python \ pywrap_tensorflow py", 58, line in & lt; module>
The from tensorflow. Python. Pywrap_tensorflow_internal import *
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow_core \ python \ pywrap_tensorflow_internal py", 28, the line in & lt; module>
_pywrap_tensorflow_internal=swig_import_helper ()
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow_core \ python \ pywrap_tensorflow_internal py", line 24, in swig_import_helper
_mod=imp. Load_module (' _pywrap_tensorflow_internal, fp, the pathname, description)
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ imp py", line 242, in the load_module
Return load_dynamic (name, filename, file)
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ imp py", line 342, in load_dynamic
Return _load (spec)
ImportError: DLL load failed: could not find the specified module,


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

For some common having and solutions. Include the - stack trace
Above this error message when have for help.

During handling of the above exception, another exception occurred:

Traceback (the most recent call last) :
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ IPython \ core \ interactiveshell py", line 1821, in showtraceback
STB=value. _render_traceback_ ()
AttributeError: 'ImportError' object has no attribute '_render_traceback_'

During handling of the above exception, another exception occurred:

Traceback (the most recent call last) :
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow_core \ python \ pywrap_tensorflow py", 58, line in & lt; module>
The from tensorflow. Python. Pywrap_tensorflow_internal import *
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow_core \ python \ pywrap_tensorflow_internal py", 28, the line in & lt; module>
_pywrap_tensorflow_internal=swig_import_helper ()
The File "D: \ Anaconda \ envs \ tensorflow \ lib \ site - packages \ tensorflow_core \ python \ pywrap_tensorflow_internal py", line 24, in swig_import_helper
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related