Using TensorFlow backend.
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\tf1.13\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\ProgramData\Anaconda3\envs\tf1.13\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\ProgramData\Anaconda3\envs\tf1.13\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 "C:\ProgramData\Anaconda3\envs\tf1.13\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\ProgramData\Anaconda3\envs\tf1.13\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:/Pycode/Unet3D_Spine/main.py", line 10, in
from model.UNet import BuildModel
File "E:\Pycode\Unet3D_Spine\model\UNet.py", line 4, in
import keras
File "C:\ProgramData\Anaconda3\envs\tf1.13\lib\site-packages\keras\__init__.py", line 3, in
from . import utils
File "C:\ProgramData\Anaconda3\envs\tf1.13\lib\site-packages\keras\utils\__init__.py", line 6, in
from . import conv_utils
File "C:\ProgramData\Anaconda3\envs\tf1.13\lib\site-packages\keras\utils\conv_utils.py", line 9, in
from .. import backend as K
File "C:\ProgramData\Anaconda3\envs\tf1.13\lib\site-packages\keras\backend\__init__.py", line 89, in
from .tensorflow_backend import *
File "C:\ProgramData\Anaconda3\envs\tf1.13\lib\site-packages\keras\backend\tensorflow_backend.py", line 5, in
import tensorflow as tf
File "C:\ProgramData\Anaconda3\envs\tf1.13\lib\site-packages\tensorflow\__init__.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:\ProgramData\Anaconda3\envs\tf1.13\lib\site-packages\tensorflow\python\__init__.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\ProgramData\Anaconda3\envs\tf1.13\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\tf1.13\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\ProgramData\Anaconda3\envs\tf1.13\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\ProgramData\Anaconda3\envs\tf1.13\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 "C:\ProgramData\Anaconda3\envs\tf1.13\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\ProgramData\Anaconda3\envs\tf1.13\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
错误如上
之前使用tf1.13是能够进行运行的,但是最近更新cuda后,出现问题
tf1.13是利用pip安装的,导致版本不对应了
修改方式
conda install tensorflow-gpu==1.13.0
这边还有一个要注意的,就是tf1.13+keras2.2.4是在pythoon=3.6环境下装的,很关键