-
Notifications
You must be signed in to change notification settings - Fork 74.2k
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: No module named '_pywrap_tensorflow_internal' #48267
Comments
@vanshika-653 |
I am getting a similar error: when running in jupyter notebook: ModuleNotFoundError: No module named '_pywrap_tensorflow' Error importing tensorflow. Unless you are using bazel, when just trying to import if va cmd: Any solutions would be great! thanks |
@grantcroft |
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. |
Closing as stale. Please reopen if you'd like to work on this further. |
I am also facing the same error. python --version gave Tensorflow version is (0.12.0) I have already installed Microsoft Visual C++ Redistribution (x64) 9.0.30729.17/.6161 / .21022 /(x86) 30729.17/ (x86) 30729.6161 Microsoft Visual C++ Redistribution2015-2019 (x64) 14.25.28508 I have included path to all dlls to environment variable path. OS is Win 7 Ultimate. When I do I get following error h:\python installed\lib\imp.py in find_module(name, path) ImportError: No module named '_pywrap_tensorflow' During handling of the above exception, another exception occurred: ModuleNotFoundError Traceback (most recent call last) h:\python installed\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in h:\python installed\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in swig_import_helper() ModuleNotFoundError: No module named '_pywrap_tensorflow' During handling of the above exception, another exception occurred: ImportError Traceback (most recent call last) h:\python installed\lib\site-packages\tensorflow_init_.py in h:\python installed\lib\site-packages\tensorflow\python_init_.py in ImportError: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Error importing tensorflow. Unless you are using bazel, |
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
C:\Users\Vanshika Gupta\AppData\Local\Programs\Python\Python39\sign-language-gesture-recognition-master>python retrain.py --bottleneck_dir=bottlenecks --summaries_dir=training_summaries/long --output_graph=retrained_graph.pb --output_labels=retrained_labels.txt --image_dir=train_frames
Traceback (most recent call last):
File "C:\Users\Vanshika Gupta\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper
fp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(file)])
File "C:\Users\Vanshika Gupta\AppData\Local\Programs\Python\Python39\lib\imp.py", line 296, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_pywrap_tensorflow'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Vanshika Gupta\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python_init_.py", line 66, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Vanshika Gupta\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 28, in
_pywrap_tensorflow = swig_import_helper()
File "C:\Users\Vanshika Gupta\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper
import _pywrap_tensorflow
ModuleNotFoundError: No module named '_pywrap_tensorflow'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Vanshika Gupta\AppData\Local\Programs\Python\Python39\sign-language-gesture-recognition-master\retrain.py", line 132, in
import tensorflow as tf
File "C:\Users\Vanshika Gupta\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import *
File "C:\Users\Vanshika Gupta\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python_init_.py", line 72, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Vanshika Gupta\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper
fp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(file)])
File "C:\Users\Vanshika Gupta\AppData\Local\Programs\Python\Python39\lib\imp.py", line 296, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_pywrap_tensorflow'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Vanshika Gupta\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python_init_.py", line 66, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Vanshika Gupta\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 28, in
_pywrap_tensorflow = swig_import_helper()
File "C:\Users\Vanshika Gupta\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper
import _pywrap_tensorflow
ModuleNotFoundError: No module named '_pywrap_tensorflow'
Failed to load the native TensorFlow runtime.
See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
Provide the exact sequence of commands / steps that you executed before running into the problem
Any 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: