-
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 while importing _pywrap_tensorflow_internal: The specified module could not be found. #43192
Comments
From the template it looks like you are installing TensorFlow (TF) prebuilt binaries:
1. Installing TensorFlow-GPU (TF) prebuilt binaries Make sure you are using compatible TF and CUDA versions. Please refer following TF version and CUDA version compatibility table.
2. Installing TensorFlow (TF) CPU prebuilt binaries TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets. Therefore on any CPU that does not have these instruction sets, either CPU or GPU version of TF will fail to load.
Please let us know if this helps. |
We don't support Anaconda installation. /cc @karmel @av8ramit We could improve this new tensorflow-butler reply with a better text when there is an Anaconda string in the issue description. |
@bhack Sorry I've mistakenly written that used conda, I used pip for installation, Btw I fixed this by running setup.py, But I am getting another error now. |
From you last log I still see that you are inside an
|
We support python venv and pip. If you want you can follow the guidelines at https://www.tensorflow.org/install/pip#windows_1. Instead if you still need to use conda envs and Anaconda you need to find support at: https://docs.anaconda.com/anaconda/user-guide/tasks/tensorflow/ Please also respect our code of conduct (/cc @theadactyl) : https://github.com/tensorflow/tensorflow/blob/master/CODE_OF_CONDUCT.md |
@bhack can you help me out:- (tensorflow1) C:\tensorflow1\models\research>python object_detection/builders/model_builder_tf2_test.py I am not getting this error. |
We cannot support you on Anacoda sorry. |
@Pranab-pronay
Also, check these similar duplicate issues: #42058 #41596 #40459 #39007 #38916 #36167 #36151 #36138 #36054 #36045 #36020 #36003 #35988 #35903 #35880 #35865 #35805 #35789 #35773 #35772 #35767 . In case you still face issues after verifying the above, please create a issue on Anaconda repo., and move this to closed status. |
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
Describe the problem I am confident that I've installed Cuda and cudnn properly and added path in the environment variable, but still, I am getting this error
Provide the exact sequence of commands / steps that you executed before running into the problem
I am following their step: https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/install.html#tensorflow-object-detection-api-installation
When I tried for "python object_detection/builders/model_builder_tf2_test.py" I am facing this error
Any other info / logs (tensorflow1) C:\tensorflow1\models\research>python object_detection/builders/model_builder_tf2_test.py
Traceback (most recent call last):
File "C:\Users\Pranab\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Pranab\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Pranab\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\Pranab\Anaconda3\envs\tensorflow1\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\Pranab\Anaconda3\envs\tensorflow1\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "object_detection/builders/model_builder_tf2_test.py", line 21, in
import tensorflow.compat.v1 as tf
File "C:\Users\Pranab\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_init_.py", line 41, in
from tensorflow.python.tools import module_util as module_util
File "C:\Users\Pranab\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python_init.py", line 50, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Pranab\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 69, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Pranab\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Pranab\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Pranab\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\Pranab\Anaconda3\envs\tensorflow1\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\Pranab\Anaconda3\envs\tensorflow1\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found.
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.
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: