Anaconda環境でTensorflow-gpuを使って物体検出(Keras)の学習しようとしていますが、下記のエラーが発生して学習を始められず困っております。
Python
1>activate keras36 2>import tensorflow as tf 3Traceback (most recent call last): 4 File "\Anaconda3\envs\keras36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module> 5 from tensorflow.python.pywrap_tensorflow_internal import * 6 File "\Anaconda3\envs\keras36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module> 7 _pywrap_tensorflow_internal = swig_import_helper() 8 File "\Anaconda3\envs\keras36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper 9 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) 10 File "\Anaconda3\envs\keras36\lib\imp.py", line 243, in load_module 11 return load_dynamic(name, filename, file) 12 File "\Anaconda3\envs\keras36\lib\imp.py", line 343, in load_dynamic 13 return _load(spec) 14ImportError: DLL load failed: 指定されたモジュールが見つかりません。 15 16During handling of the above exception, another exception occurred: 17 18Traceback (most recent call last): 19 File "<stdin>", line 1, in <module> 20 File "\Anaconda3\envs\keras36\lib\site-packages\tensorflow\__init__.py", line 24, in <module> 21 from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import 22 File "\Anaconda3\envs\keras36\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module> 23 from tensorflow.python import pywrap_tensorflow 24 File "\Anaconda3\envs\keras36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module> 25 raise ImportError(msg) 26ImportError: Traceback (most recent call last): 27 File "\Anaconda3\envs\keras36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module> 28 from tensorflow.python.pywrap_tensorflow_internal import * 29 File "\Anaconda3\envs\keras36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module> 30 _pywrap_tensorflow_internal = swig_import_helper() 31 File "\Anaconda3\envs\keras36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper 32 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) 33 File "\Anaconda3\envs\keras36\lib\imp.py", line 243, in load_module 34 return load_dynamic(name, filename, file) 35 File "\Anaconda3\envs\keras36\lib\imp.py", line 343, in load_dynamic 36 return _load(spec) 37ImportError: DLL load failed: 指定されたモジュールが見つかりません。 38 39 40Failed to load the native TensorFlow runtime. 41 42See https://www.tensorflow.org/install/errors 43 44for some common reasons and solutions. Include the entire stack trace 45above this error message when asking for help.
環境は下記のとおりです。
OS : Windows 10 Pro 64bit 1809 GPU : NVIDIA Quadro P600 (ドライバ:25.21.14.1881) Anaconda : 201812 Python3.7 64bit Anaconda Navigator : 1.9.6 Visual Studio : Professional 2017 (Version 15.9.3) Microsoft .NET Framework : 4.7.03190 Microsoft Visual C++ 2017 Redistributable (x64) : 14.16.27012 Microsoft Visual C++ 2017 Redistributable (x86) : 14.16.27012 CUDA Toolkit : 9.0.176.4 cuDNN : 7.4.2.24
Python
1>conda list 2# Name Version Build Channel 3absl-py 0.7.0 <pip> 4astor 0.7.1 <pip> 5certifi 2018.11.29 py36_0 6cycler 0.10.0 <pip> 7gast 0.2.2 <pip> 8grpcio 1.18.0 <pip> 9h5py 2.9.0 <pip> 10Keras 1.2.2 <pip> 11Keras-Applications 1.0.7 <pip> 12Keras-Preprocessing 1.0.9 <pip> 13kiwisolver 1.0.1 <pip> 14Markdown 3.0.1 <pip> 15matplotlib 3.0.2 <pip> 16numpy 1.16.1+mkl <pip> 17opencv-python 4.0.0.21 <pip> 18Pillow 5.4.1 <pip> 19pip 19.0.1 py36_0 20protobuf 3.6.1 <pip> 21pyparsing 2.3.1 <pip> 22python 3.6.8 h9f7ef89_1 23python-dateutil 2.8.0 <pip> 24PyYAML 3.13 <pip> 25scipy 1.2.1 <pip> 26setuptools 40.8.0 <pip> 27setuptools 40.8.0 py36_0 28six 1.12.0 <pip> 29sqlite 3.26.0 he774522_0 30tensorboard 1.12.2 <pip> 31tensorflow-gpu 1.12.0 <pip> 32termcolor 1.1.0 <pip> 33Theano 1.0.4 <pip> 34vc 14.1 h0510ff6_4 35vs2015_runtime 14.15.26706 h3a45250_0 36Werkzeug 0.14.1 <pip> 37wheel 0.32.3 py36_0 38wheel 0.33.1 <pip> 39wincertstore 0.2 py36h7fe50ca_0
ちなみにPython3.5で構築しなおしましたがエラー内容は変わりませんでした。
python
1>conda list 2# Name Version Build Channel 3absl-py 0.7.0 <pip> 4astor 0.7.1 <pip> 5certifi 2018.8.24 py35_1 6cycler 0.10.0 <pip> 7gast 0.2.2 <pip> 8grpcio 1.18.0 <pip> 9h5py 2.9.0 <pip> 10Keras 1.2.2 <pip> 11Keras-Applications 1.0.7 <pip> 12Keras-Preprocessing 1.0.9 <pip> 13kiwisolver 1.0.1 <pip> 14Markdown 3.0.1 <pip> 15matplotlib 3.0.2 <pip> 16numpy 1.15.4+mkl <pip> 17opencv-python 4.0.0.21 <pip> 18Pillow 5.4.1 <pip> 19pip 10.0.1 py35_0 20pip 19.0.3 <pip> 21protobuf 3.6.1 <pip> 22pyparsing 2.3.1 <pip> 23python 3.5.6 he025d50_0 24python-dateutil 2.8.0 <pip> 25PyYAML 3.13 <pip> 26scipy 1.2.0 <pip> 27setuptools 40.2.0 py35_0 28setuptools 40.8.0 <pip> 29six 1.12.0 <pip> 30tensorboard 1.12.2 <pip> 31tensorflow-gpu 1.12.0 <pip> 32termcolor 1.1.0 <pip> 33Theano 1.0.4 <pip> 34vc 14.1 h0510ff6_4 35vs2015_runtime 14.15.26706 h3a45250_0 36Werkzeug 0.14.1 <pip> 37wheel 0.31.1 py35_0 38wheel 0.33.1 <pip> 39wincertstore 0.2 py35hfebbdb8_0
不足している情報などありましたらご連絡ください。
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー