-
Notifications
You must be signed in to change notification settings - Fork 74k
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: The specified module could not be found." while trying to import tensorflow in tensorflow_cpu environment. #35988
Comments
Having the same issue with what appears to be the same trace. My setup is Pycharm 2019.2 although I have had other versions working previously using Pycharm. Interpreters I have tried are conda and pip through pycharm |
@Shivani29sheth @brian1985 What is your cpu make/model? TF 1.6 and above requires support for AVX instructions sets. |
I am experiencing the same issue, running TF 1.12, tho previously (a few days ago) this was working fine. Any updates? |
It works now. I am not sure what caused the issue but I believe it was somehow related to Pycharm. I closed the program, restarted Pycharm AND then closed the Ipython terminal at the bottom. After that I assume it forced Pycharm to do something because it then worked. |
I have switched temporarily to TF-CPU. I will re-switch to GPU in the following days and post here an update. |
@Shivani29sheth and @brian1985, Please take a look at support hardware requirements of Tensorflow. |
@Shivani29sheth, Is this still an issue |
Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks! |
Re-installed CUDA and CuDNn and everything is fine now. Not sure what was the problem before, as I re-installed the same versions + same tf gpu version. |
Traceback (most recent call last): File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\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 "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\imp.py", line 243, in load_module return load_dynamic(name, filename, file) File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\imp.py", line 343, in load_dynamic return load(spec) 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 "", line 1, in File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\site-packages\tensorflow_init.py", line 101, in from tensorflow_core import * File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\site-packages\tensorflow_core_init.py", line 40, in from tensorflow.python.tools import module_util as module_util File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\site-packages\tensorflow_init.py", line 50, in getattr module = self.load() File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\site-packages\tensorflow_init.py", line 44, in _load module = importlib.import_module(self.name) File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\importlib_init.py", line 126, in import_module return _bootstrap.gcd_import(name[level:], package, level) File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\site-packages\tensorflow_core\python_init.py", line 49, in from tensorflow.python import pywrap_tensorflow File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in raise ImportError(msg) ImportError: Traceback (most recent call last): File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\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 "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\imp.py", line 243, in load_module return load_dynamic(name, filename, file) File "C:\Users\Shivani\Anaconda3\envs\tensorflow_cpu\lib\imp.py", line 343, in load_dynamic return _load(spec) ImportError: DLL load failed: The specified module could not be found.
The text was updated successfully, but these errors were encountered: