-
Notifications
You must be signed in to change notification settings - Fork 74.1k
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
unable to import tensorflow after installation- DLL load failed: The specified module could not be found error comes up #36377
Comments
import tensorflow File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\imp.py", line 242, in load_module File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\imp.py", line 342, in load_dynamic 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:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_init_.py", line 101, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core_init_.py", line 40, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_init_.py", line 50, in getattr File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_init_.py", line 44, in _load File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\importlib_init_.py", line 127, in import_module File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python_init_.py", line 49, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in ImportError: Traceback (most recent call last): 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 Error in callback <bound method AutoreloadMagics.post_execute_hook of <autoreload.AutoreloadMagics object at 0x000001E4A200A588>> (for post_execute): File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\imp.py", line 242, in load_module File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\imp.py", line 342, in load_dynamic 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 "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\IPython\extensions\autoreload.py", line 538, in post_execute_hook File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\IPython\extensions\autoreload.py", line 184, in filename_and_mtime File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_init_.py", line 50, in getattr File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_init_.py", line 44, in _load File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\importlib_init_.py", line 127, in import_module File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 953, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core_init_.py", line 42, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core_api\v2\audio_init_.py", line 10, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python\ops\gen_audio_ops.py", line 9, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_init_.py", line 50, in getattr File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_init_.py", line 44, in _load File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\importlib_init_.py", line 127, in import_module File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python_init_.py", line 49, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in ImportError: Traceback (most recent call last): 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 import tensorflow as tf File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\imp.py", line 242, in load_module File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\imp.py", line 342, in load_dynamic 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 "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\IPython\extensions\autoreload.py", line 538, in post_execute_hook File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\IPython\extensions\autoreload.py", line 184, in filename_and_mtime File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_init_.py", line 50, in getattr File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_init_.py", line 44, in _load File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\importlib_init_.py", line 127, in import_module File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 953, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core_init_.py", line 42, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core_api\v2\audio_init_.py", line 10, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python\ops\gen_audio_ops.py", line 9, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_init_.py", line 50, in getattr File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_init_.py", line 44, in _load File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\importlib_init_.py", line 127, in import_module File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python_init_.py", line 49, in File "C:\ProgramData\Anaconda3\envs\py3-TF2.0\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in ImportError: Traceback (most recent call last): 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 |
You haven't done any work in this issue: haven't filled in the template, haven't formatted your error message and, most egregiously, haven't checked for duplicates. Closing as duplicate. #36167 #36151 #36138 #36054 #36045 #36020 #36003 #35988 #35903 #35880 #35865 #35805 #35789 #35773 #35772 #35767 #35766 #35749 #35721 #35618 #35204 |
Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:
Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.
System information
You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with:
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the problem
Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.
Source code / 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. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.
The text was updated successfully, but these errors were encountered: