我正在尝试运行python(3.7.4)脚本,并且我已经安装了tensorflow gpu(1.14.0)和CUDA 9.0,并且每次尝试运行该脚本时,我都会不断收到以下错误,
错误:
Traceback (most recent call last):
File "O:\WinPython\WPy64-3741\python-3.7.4.amd64\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "O:\WinPython\WPy64-3741\python-3.7.4.amd64\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "O:\WinPython\WPy64-3741\python-3.7.4.amd64\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 "O:\WinPython\WPy64-3741\python-3.7.4.amd64\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "O:\WinPython\WPy64-3741\python-3.7.4.amd64\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
在处理以上异常期间,发生了另一个异常:
Traceback (most recent call last):
File "demo_cli.py", line 3, in <module>
from synthesizer.inference import Synthesizer
File "C:\Users\DELL\Desktop\Project\Voice_Cloning\Real-Time-Voice-Cloning-master\synthesizer\inference.py", line 1, in <module>
from synthesizer.tacotron2 import Tacotron2
File "C:\Users\DELL\Desktop\Project\Voice_Cloning\Real-Time-Voice-Cloning-master\synthesizer\tacotron2.py", line 3, in <module>
from synthesizer.models import create_model
File "C:\Users\DELL\Desktop\Project\Voice_Cloning\Real-Time-Voice-Cloning-master\synthesizer\models\__init__.py", line 1, in <module>
from .tacotron import Tacotron
File "C:\Users\DELL\Desktop\Project\Voice_Cloning\Real-Time-Voice-Cloning-master\synthesizer\models\tacotron.py", line 1, in <module>
import tensorflow as tf
File "O:\WinPython\WPy64-3741\python-3.7.4.amd64\lib\site-packages\tensorflow\__init__.py", line 28, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "O:\WinPython\WPy64-3741\python-3.7.4.amd64\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "O:\WinPython\WPy64-3741\python-3.7.4.amd64\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "O:\WinPython\WPy64-3741\python-3.7.4.amd64\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "O:\WinPython\WPy64-3741\python-3.7.4.amd64\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "O:\WinPython\WPy64-3741\python-3.7.4.amd64\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 "O:\WinPython\WPy64-3741\python-3.7.4.amd64\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "O:\WinPython\WPy64-3741\python-3.7.4.amd64\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
无法加载本地TensorFlow
运行时。
任何帮助都会非常有帮助。谢谢。