ImportError:DLL加载失败。找不到“ imp.py”

时间:2019-08-10 16:43:54

标签: python tensorflow

编辑-收到此消息后,我尝试安装TensorFlow,在我进行检查之前,它出现了与以下错误类似的错误,它似乎安装得很好。

我正在尝试使用DeepFakeLab,并且不断收到此错误消息。

Exception: Traceback (most recent call last):
  File "C:\Users\benja\Documents\Program Files\DeepFaceLab\DeepFaceLabCUDA10.1AVX\_internal\python-3.6.8\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\benja\Documents\Program Files\DeepFaceLab\DeepFaceLabCUDA10.1AVX\_internal\python-3.6.8\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\benja\Documents\Program Files\DeepFaceLab\DeepFaceLabCUDA10.1AVX\_internal\python-3.6.8\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 "imp.py", line 243, in load_module
  File "imp.py", line 343, in load_dynamic
ImportError: DLL load failed: The specified module could not be found.

在处理上述异常期间,发生了另一个异常:

Traceback (most recent call last):
  File "C:\Users\benja\Documents\Program Files\DeepFaceLab\DeepFaceLabCUDA10.1AVX\_internal\DeepFaceLab\joblib\SubprocessorBase.py", line 59, in _subprocess_run
    self.on_initialize(client_dict)
  File "C:\Users\benja\Documents\Program Files\DeepFaceLab\DeepFaceLabCUDA10.1AVX\_internal\DeepFaceLab\mainscripts\Extractor.py", line 68, in on_initialize
    nnlib.import_all (device_config)
  File "C:\Users\benja\Documents\Program Files\DeepFaceLab\DeepFaceLabCUDA10.1AVX\_internal\DeepFaceLab\nnlib\nnlib.py", line 756, in import_all
    nnlib.import_keras(device_config)
  File "C:\Users\benja\Documents\Program Files\DeepFaceLab\DeepFaceLabCUDA10.1AVX\_internal\DeepFaceLab\nnlib\nnlib.py", line 165, in import_keras
    nnlib._import_tf(device_config)
  File "C:\Users\benja\Documents\Program Files\DeepFaceLab\DeepFaceLabCUDA10.1AVX\_internal\DeepFaceLab\nnlib\nnlib.py", line 134, in _import_tf
    import tensorflow as tf
  File "C:\Users\benja\Documents\Program Files\DeepFaceLab\DeepFaceLabCUDA10.1AVX\_internal\python-3.6.8\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "C:\Users\benja\Documents\Program Files\DeepFaceLab\DeepFaceLabCUDA10.1AVX\_internal\python-3.6.8\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "C:\Users\benja\Documents\Program Files\DeepFaceLab\DeepFaceLabCUDA10.1AVX\_internal\python-3.6.8\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "C:\Users\benja\Documents\Program Files\DeepFaceLab\DeepFaceLabCUDA10.1AVX\_internal\python-3.6.8\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\benja\Documents\Program Files\DeepFaceLab\DeepFaceLabCUDA10.1AVX\_internal\python-3.6.8\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\benja\Documents\Program Files\DeepFaceLab\DeepFaceLabCUDA10.1AVX\_internal\python-3.6.8\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 "imp.py", line 243, in load_module
  File "imp.py", line 343, in load_dynamic
ImportError: DLL load failed: The specified module could not be found.


Failed to load the native TensorFlow runtime.

我不太熟悉编码,所以我不太了解问题所在。谢谢。

0 个答案:

没有答案