python - I tried to do tensorflow , but some errors occured -
anyone, please me.
my environment windows10,anaconda4.4.0,python 3.5.4.
i installed tensorflow ,
import tensorflow tf typed code. but,
>>> import tensorflow tf traceback (most recent call last): file "c:\anaconda3\envs\tf1\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper return importlib.import_module(mname) file "c:\anaconda3\envs\tf1\lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) file "<frozen importlib._bootstrap>", line 985, in _gcd_import file "<frozen importlib._bootstrap>", line 968, in _find_and_load file "<frozen importlib._bootstrap>", line 957, in _find_and_load_unlocked file "<frozen importlib._bootstrap>", line 666, in _load_unlocked file "<frozen importlib._bootstrap>", line 577, in module_from_spec file "<frozen importlib._bootstrap_external>", line 938, in create_module file "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed importerror: dll load failed: 指定されたモジュールが見つかりません。 during handling of above exception, exception occurred: traceback (most recent call last): file "c:\anaconda3\envs\tf1\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in <module> tensorflow.python.pywrap_tensorflow_internal import * file "c:\anaconda3\envs\tf1\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module> _pywrap_tensorflow_internal = swig_import_helper() file "c:\anaconda3\envs\tf1\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper return importlib.import_module('_pywrap_tensorflow_internal') file "c:\anaconda3\envs\tf1\lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) importerror: no module named '_pywrap_tensorflow_internal' during handling of above exception, exception occurred: traceback (most recent call last): file "<stdin>", line 1, in <module> file "c:\anaconda3\envs\tf1\lib\site-packages\tensorflow\__init__.py", line 24, in <module> tensorflow.python import * file "c:\anaconda3\envs\tf1\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module> tensorflow.python import pywrap_tensorflow file "c:\anaconda3\envs\tf1\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 52, in <module> raise importerror(msg) importerror: traceback (most recent call last): file "c:\anaconda3\envs\tf1\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper return importlib.import_module(mname) file "c:\anaconda3\envs\tf1\lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) file "<frozen importlib._bootstrap>", line 985, in _gcd_import file "<frozen importlib._bootstrap>", line 968, in _find_and_load file "<frozen importlib._bootstrap>", line 957, in _find_and_load_unlocked file "<frozen importlib._bootstrap>", line 666, in _load_unlocked file "<frozen importlib._bootstrap>", line 577, in module_from_spec file "<frozen importlib._bootstrap_external>", line 938, in create_module file "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed importerror: dll load failed: 指定されたモジュールが見つかりません。 during handling of above exception, exception occurred: traceback (most recent call last): file "c:\anaconda3\envs\tf1\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in <module> tensorflow.python.pywrap_tensorflow_internal import * file "c:\anaconda3\envs\tf1\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module> _pywrap_tensorflow_internal = swig_import_helper() file "c:\anaconda3\envs\tf1\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper return importlib.import_module('_pywrap_tensorflow_internal') file "c:\anaconda3\envs\tf1\lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) importerror: no module named '_pywrap_tensorflow_internal' failed load native tensorflow runtime. see https://www.tensorflow.org/install/install_sources#common_installation_problems common reasons , solutions. include entire stack trace above error message when asking help. i saw lot of sites,and tried lot of things this. these checked. fitst, cublas64_80.dll,nvblas64_80.dll,cudnn64_5.dll ilocated in
c:\program files\nvidia gpu computing toolkit\cuda\v8.0\bin
and, location set "path".
what should do? please me. thank you.
i'd bet have installed tensorflow different python virtual envrionment.
to resolve: open conda terminal * open anacondanavigator * environment tab * green arrow environment name * open terminal
in terminal hit> "conda install -c conda-forge tensorflow" watch install, close terminal, reopen notebook, , should work.
Comments
Post a Comment