windowsにtenssorflow時報をインストールするのは間違いで、「DLL load failed:指定のモジュールが見つからない」という問題を解決します。


最近は機械の勉強を始めたいです。今日はwindowsにtenssorflowを装うのに時間がかかりました。前のステップは難しくないです。順を追ってpython 3.5、numpy、tenson flowを装えばいいです。ちょっと注意したいのは今のところpyton 3.5だけでtenssorflowを取り付けることができます。最新版のpython 3.6は全部だめです。
tenssorflowを装ったら、直接にテストケースでテストしないことをお勧めします。最初のテストはpython shellに入力できます。
import tenssor flow
もし間違いがないなら、おめでとうございます。十中八九入れました。この時は簡単なテストケースでテストしてもいいです。でも、間違えていないとあなたもこのブログを見られないと思います。。
実は、私が初めてインストールした時に次のようなエラーがありました。
Traceback(most recent call last):
File「D:\Python\Python 35\lib\site-packages\tens flow\python\pywrap_tenssor flowinternal.py,line 18,in swig_import.helper
return importlib.import_module(mname)
File「D:\Python\Python 35\lib\importlib_init_.py"line 126,in import_module
return_ブットストリップ.gcd_import(name[level],package,level)
File「frozen importlib.ubootstrap、line 986、in_gcd_import
File「frozen importlib.ubootstrap、line 969、in_find_and_ロード
File「frozen importlib.ubootstrap、line 958、in_find_and_ロード.unlocked
File「frozen importlib.ubootstrap、line 666、in_ロード.unlocked
File「frozen importlib.ubootstrap”,LINE 577,in module_fromスペシャル
File「frozen importlib.uブットストリップexternal、line 906、in create_module
File「frozen importlib.uブットストリップ、ライン222、インコールwith_frames_レモベ
ImportError:DLL load failed:指定されたモジュールが見つかりません。
During handling of the above exception、another exception occurred:
Traceback(most recent call last):
File「D:\Python\Python 35\lib\site-packages\tens flow\python\pywrap_tenssor flow.py,line 41,in module
from tensior flow.python.pywrap_tenssor flowinternal import*
File「D:\Python\Python 35\lib\site-packages\tens flow\python\pywrap_tenssor flowinternal.py,line 21,in module
_。pywrap_tenssor flowインターナール=swig_import.helper()
File「D:\Python\Python 35\lib\site-packages\tens flow\python\pywrap_tenssor flowinternal.py,line 20,in swig_import.helper
return importlib.import_module(‘u’pywrap_tenssor flowインターナショナル
File「D:\Python\Python 35\lib\importlib_init_.py"line 126,in import_module
return_ブットストリップ.gcd_import(name[level],package,level)
ImportError:No module named‘u’pywrap_tenssor flowインターナショナル
During handling of the above exception、another exception occurred:
Traceback(most recent call last):
File「pyshell嗳0」、ライン1、in module
import tenssor flow
File「D:\Python\Python 35\lib\site-packages\tens flow_uinit_.py"line 24,in module
from tenssor flow.python import*
File「D:\Python\Python 35\lib\site-packages\tens flow\python_uinit_.py"line 51,in module
from tenssor flow.python import pywrap_tenssor flow
File「D:\Python\Python 35\lib\site-packages\tens flow\python\pywrap_tenssor flow.py,line 52,in module
ライセImportError(msg)
ImportError:Traceback(most recent call last):
File「D:\Python\Python 35\lib\site-packages\tens flow\python\pywrap_tenssor flowinternal.py,line 18,in swig_import.helper
return importlib.import_module(mname)
File「D:\Python\Python 35\lib\importlib_init_.py"line 126,in import_module
return_ブットストリップ.gcd_import(name[level],package,level)
File「frozen importlib.ubootstrap、line 986、in_gcd_import
File「frozen importlib.ubootstrap、line 969、in_find_and_ロード
File「frozen importlib.ubootstrap、line 958、in_find_and_ロード.unlocked
File「frozen importlib.ubootstrap、line 666、in_ロード.unlocked
File「frozen importlib.ubootstrap”,LINE 577,in module_fromスペシャル
File「frozen importlib.uブットストリップexternal、line 906、in create_module
File「frozen importlib.uブットストリップ、ライン222、インコールwith_frames_レモベ
ImportError:DLL load failed:指定されたモジュールが見つかりません。
During handling of the above exception、another exception occurred:
Traceback(most recent call last):
File「D:\Python\Python 35\lib\site-packages\tens flow\python\pywrap_tenssor flow.py,line 41,in module
from tensior flow.python.pywrap_tenssor flowinternal import*
File「D:\Python\Python 35\lib\site-packages\tens flow\python\pywrap_tenssor flowinternal.py,line 21,in module
_。pywrap_tenssor flowインターナール=swig_import.helper()
File「D:\Python\Python 35\lib\site-packages\tens flow\python\pywrap_tenssor flowinternal.py,line 20,in swig_import.helper
return importlib.import_module(‘u’pywrap_tenssor flowインターナショナル
File「D:\Python\Python 35\lib\importlib_init_.py"line 126,in import_module
return_ブットストリップ.gcd_import(name[level],package,level)
ImportError:No module named‘u’pywrap_tenssor flowインターナショナル
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources
for some common reasons and solutions.Include the entire stack trace
above this error message when asking for help.
以前はオンラインでインストール方法を調べていますが、Anacondaを入れると言われていましたが、直接にpython 3.5を入れたので、Anacondaを入れていません。問題はここにないと信じています。後にvisual studio 2017を装ってこのエラーを解決したという人を見ましたが、そんなことはないと思います。tenssor flowを装ってvisual studio 2017をインストールしますか?実際にはvisual studio 2017の中に、tenssorflowを実行するために必要な運行環境があります。ですから、足りない運行時の環境をインストールすればいいです。以下のサイトでinstall instructionsによってインストールできます。とても簡単です。32桁と64桁のバージョンを選んでください。
https://www.microsoft.com/en-us/download/details.aspx?id=53587
セットしたらtenssor flowが正常に使えます。
締め括りをつける
ここで、Windowsにtens flowをインストールした時報の間違いを解決するために、「DLL load failed:指定されたモジュールが見つからない」という問題の文章を紹介します。これに関連して、windowsにtens flowをインストールして、間違った内容を報告します。私達の以前の文章を検索してください。