tensor flow 호출 오류 ImportError: No module named 'pywrap_tensorflow_internal';DLL load failed: 지정 한 모듈 을 찾 을 수 없습니다.

5298 단어 TensorFlow
windows 에서 tensor flow 를 호출 하여 오 류 를 알 립 니 다:
Traceback (most recent call last):
  File "C:\Users\****\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
    return importlib.import_module(mname)
  File "C:\Users\****\Anaconda3\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 986, in _gcd_import
  File "", line 969, in _find_and_load
  File "", line 958, in _find_and_load_unlocked
  File "", line 666, in _load_unlocked
  File "", line 577, in module_from_spec
  File "", line 906, in create_module
  File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed:         。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\****\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in 
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\****\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in 
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\****\Anaconda3\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\****\Anaconda3\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "F:/****.py", line 12, in 
    import tensorflow as tf
  File "C:\Users\****\Anaconda3\lib\site-packages\tensorflow\__init__.py", line 24, in 
    from tensorflow.python import *
  File "C:\Users\****\Anaconda3\lib\site-packages\tensorflow\python\__init__.py", line 49, in 
    from tensorflow.python import pywrap_tensorflow
  File "C:\Users\****\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 52, in 
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "C:\Users\****\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
    return importlib.import_module(mname)
  File "C:\Users\****\Anaconda3\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 986, in _gcd_import
  File "", line 969, in _find_and_load
  File "", line 958, in _find_and_load_unlocked
  File "", line 666, in _load_unlocked
  File "", line 577, in module_from_spec
  File "", line 906, in create_module
  File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed:         。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\****\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in 
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\****\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in 
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\****\Anaconda3\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\****\Anaconda3\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/install_sources#common_installation_problems

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

Process finished with exit code 1

오류 원인: CUDA 는 cudnn 버 전과 일치 하지 않 습 니 다. CUDA 8.0 은 cudnn 6.0 과 일치 합 니 다.
해결 방법: "~ \ NVIDIA GPU Computing Toolkit \ CUDA \ v 8.0 \ cudnn v 6.0 \ bin \ cudnn64 6. dll" 을 복사 합 니 다.
"~ \ NVIDIA GPU Computing Toolkit \ CUDA \ v 8.0 \ bin" 폴 더 아래 에 있 으 면 됩 니 다.

좋은 웹페이지 즐겨찾기