Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: DLL load failed: #36286

Closed
Mr-Bigworth opened this issue Jan 28, 2020 · 1 comment
Closed

ImportError: DLL load failed: #36286

Mr-Bigworth opened this issue Jan 28, 2020 · 1 comment
Labels
subtype:windows Windows Build/Installation Issues TF 2.1 for tracking issues in 2.1 release type:build/install Build and install issues

Comments

@Mr-Bigworth
Copy link

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

  • OS Platform and Distribution :win10
  • TensorFlow installed from (source or binary):http://pypi.douban.com/simple
  • TensorFlow version:2.1.0
  • Python version:3.6.8
  • Installed using virtualenv? pip? conda?:anaconda
  • Bazel version (if compiling from source):
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version:10.1.152
  • GPU model and memory:Geforce GTX 1060

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.

@mihaimaruseac
Copy link
Collaborator

@amahendrakar amahendrakar added subtype:windows Windows Build/Installation Issues TF 2.1 for tracking issues in 2.1 release type:build/install Build and install issues labels Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subtype:windows Windows Build/Installation Issues TF 2.1 for tracking issues in 2.1 release type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

3 participants