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

TF 2.3 ImportError: DLL load failed: The specified module could not be found. #43085

Closed
ghost opened this issue Sep 9, 2020 · 6 comments
Closed
Assignees
Labels
stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author subtype:windows Windows Build/Installation Issues TF 2.3 Issues related to TF 2.3 type:build/install Build and install issues

Comments

@ghost
Copy link

ghost commented Sep 9, 2020

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: No
  • TensorFlow installed from (source or binary): source?
  • TensorFlow version: 2.3
  • Python version: 3.6
  • Installed using virtualenv? pip? conda? pip
  • Bazel version (if compiling from source): NA
  • GCC/Compiler version (if compiling from source): na
  • CUDA/cuDNN version: 10.1
  • GPU model and memory: cpu

I run this code

import tensorflow as tf
print(tf.version)

and this error log appears

Traceback (most recent call last):
File "D:\Christian\ML\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:/Christian/ML/main.py", line 1, in
import tensorflow as tf
File "D:\Christian\ML\venv\lib\site-packages\tensorflow_init_.py", line 41, in
from tensorflow.python.tools import module_util as module_util
File "D:\Christian\ML\venv\lib\site-packages\tensorflow\python_init
.py", line 40, in
from tensorflow.python.eager import context
File "D:\Christian\ML\venv\lib\site-packages\tensorflow\python\eager\context.py", line 35, in
from tensorflow.python import pywrap_tfe
File "D:\Christian\ML\venv\lib\site-packages\tensorflow\python\pywrap_tfe.py", line 28, in
from tensorflow.python import pywrap_tensorflow
File "D:\Christian\ML\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 83, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "D:\Christian\ML\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.

Failed to load the native TensorFlow runtime.

@ghost ghost added the type:build/install Build and install issues label Sep 9, 2020
@bhack
Copy link
Contributor

bhack commented Sep 9, 2020

Do you have installed C++ redistributable? https://support.microsoft.com/it-it/help/2977003/the-latest-supported-visual-c-downloads

@ravikyram
Copy link
Contributor

@profzamorra

What is make/model of your cpu?
I suspect your cpu model does not support AVX instructions sets.See hardware requirements
Make sure to download the latest microsoft visual c++ redistributable from here.
.Also, please follow the instructions from to install from Tensorflow website.

Please, check Your CPU/Python is on 32 bits?Please, refer #36167 and see if it helps you.Please, refer similar issues #36167 #36151 #36138 #36054 #36045 #36020 #36003 #35988 #35903 #35880 #35865 #35805 #35789 #35773 #35772 #35767 #35766 #35749 #35721 #35618 #35204
Thanks!

@ravikyram ravikyram added subtype:windows Windows Build/Installation Issues TF 2.3 Issues related to TF 2.3 stat:awaiting response Status - Awaiting response from author labels Sep 10, 2020
@ghost
Copy link
Author

ghost commented Sep 10, 2020

My cpu model is Intel Core i7-4771 3,5Ghz( 64 bit), the latest version of C++ Redistributable is 2017 14.11.23325, installed 13.6.2020. I have installed anaconsa 2 (32bit) and 3 (32 bit) and Python 3.8 (64 bit).

@ravikyram
Copy link
Contributor

@profzamorra

Anaconda by default has a Python environment of its own, which comes with TensorFlow preinstalled.TensorFlow is tested and supported on 64-bit systems.So you'll need Anaconda 64 bit for this.

Alternatively,if you want to install TensorFlow on Python (ie. without Anaconda), please check if you have all the compatible hardware and software requirements mentioned here.Thanks!

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Status - Awaiting response from author label Sep 12, 2020
@ravikyram ravikyram added the stat:awaiting response Status - Awaiting response from author label Sep 16, 2020
@google-ml-butler
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

@google-ml-butler google-ml-butler bot added the stale This label marks the issue/pr stale - to be closed automatically if no activity label Sep 23, 2020
@ghost ghost closed this as completed Sep 23, 2020
@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author subtype:windows Windows Build/Installation Issues TF 2.3 Issues related to TF 2.3 type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

3 participants