-
Notifications
You must be signed in to change notification settings - Fork 74.7k
TensorFlow 2.1: ImportError: DLL load failed: The specified module could not be found. #35749
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
Comments
I solved it today downloading and installing visual studio 2015-2019 x86 and x64 from here: Other solution is downgrading tensorflow to 2.0: I have Python 3.7.6, CUDA 10.1 and cuDNN for CUDA 10.1 and I have followed this requeriments: I hope it works for you also! |
Thanks! That worked for me too! |
Wrong URL in markdown |
Best solution is just downgrading your tensorflow using |
It's work for me |
Worked! :) |
1.https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads It works. |
I will try this solution |
Thanks! It works for me! |
Thanks!!! it works.... |
Guys, please stop spamming with "it works" messages. |
i have python 3.6.0 , CUDA 10.2 and cuDNN and this fixed my problem :
|
@AhmedSheha0 that's a terrible advice. Solution is given in #35749 (comment) (among other places). Let's not hide the solution with fake solutions and spam |
Im sharing what worked for me .. You can dislike my advice , or claim it didnt work for you , that's your right but it's not too nice of you to say it's a "terrible" advice and that I'm spamming and giving out fake solutions. |
Tensorflow-gpu 2.1 |
@AhmedSheha0 no, it is a terrible advice because 2.0 is not a LTS release hence after a year it will no longer receive security updates (just one example of why downgrading is not a solution) Also, think how many people are notified and how many confusing "solutions" are in these threads. Also, notice how many people replied with the same spammy advice of "it works for me if you downgrade" We could just lock thread to contributors to prevent such spam, but we rely on people who comment here to think before they write. To conclude, the real solution is to install the latest MSVC redistributable from https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads and not to downgrade to 2.0 |
Uh oh!
There was an error while loading. Please reload this page.
I am using
Python 3.76
TensorFlow 2.1
Installed using: pip install tensorflow
Processor: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz, 2601 Mhz, 2 Core(s), 4 Logical Processor(s)
Laptop System Model: HP Spectre x360 Convertible
Reproduce: All I have to type is "import tensorflow as tf" and it fails.
Note: I also tried using tensorflow-cpu and still got the same issue.
Stack Trace:
System information
You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with: 1. TF 1.0:
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
2. TF 2.0:python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the current behavior
Describe the expected behavior
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
The text was updated successfully, but these errors were encountered: