ImportError: DLL load failed: #36286
Labels
subtype:windows
Windows Build/Installation Issues
TF 2.1
for tracking issues in 2.1 release
type:build/install
Build and install issues
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information
Describe the problem
**after import tensorflow as tf **
Any other info / logs
Traceback (most recent call last):
File "G:\anaconda\envs\basecopy\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "G:\anaconda\envs\basecopy\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "G:\anaconda\envs\basecopy\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "G:\anaconda\envs\basecopy\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "G:\anaconda\envs\basecopy\lib\imp.py", line 343, 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 "G:/pyexercise/pyexercise7(tensor).py", line 2, in
import tensorflow as tf
File "G:\anaconda\envs\basecopy\lib\site-packages\tensorflow_init_.py", line 101, in
from tensorflow_core import *
File "G:\anaconda\envs\basecopy\lib\site-packages\tensorflow_core_init_.py", line 40, in
from tensorflow.python.tools import module_util as module_util
File "G:\anaconda\envs\basecopy\lib\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "G:\anaconda\envs\basecopy\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "G:\anaconda\envs\basecopy\lib\importlib_init.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "G:\anaconda\envs\basecopy\lib\site-packages\tensorflow_core\python_init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "G:\anaconda\envs\basecopy\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "G:\anaconda\envs\basecopy\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "G:\anaconda\envs\basecopy\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "G:\anaconda\envs\basecopy\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "G:\anaconda\envs\basecopy\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "G:\anaconda\envs\basecopy\lib\imp.py", line 343, 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.
The text was updated successfully, but these errors were encountered: