Skip to content

import error #88780

Closed as duplicate of#19584
Closed as duplicate of#19584
@jsuj1th

Description

@jsuj1th

Issue type

Build/Install

Have you reproduced the bug with TensorFlow Nightly?

No

Source

source

TensorFlow version

2.8

Custom code

No

OS platform and distribution

No response

Mobile device

No response

Python version

No response

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?


ImportError Traceback (most recent call last)
File c:\Users\SUJITH\anaconda3\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py:70
69 try:
---> 70 from tensorflow.python._pywrap_tensorflow_internal import *
71 # This try catch logic is because there is no bazel equivalent for py_extension.
72 # Externally in opensource we must enable exceptions to load the shared object
73 # by exposing the PyInit symbols with pybind. This error will only be
74 # caught internally or if someone changes the name of the target _pywrap_tensorflow_internal.
75
76 # This logic is used in other internal projects using py_extension.

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:

ImportError Traceback (most recent call last)
Cell In[1], line 3
1 # !pip install tensorflow
----> 3 import tensorflow as tf
4 from tensorflow.keras.applications import MobileNetV3Small
5 from tensorflow.keras.models import Model

File c:\Users\SUJITH\anaconda3\Lib\site-packages\tensorflow_init_.py:40
37 _os.environ.setdefault("ENABLE_RUNTIME_UPTIME_TELEMETRY", "1")
39 # Do not remove this line; See #42596
---> 40 from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow # pylint: disable=unused-import
41 from tensorflow.python.tools import module_util as _module_util
42 from tensorflow.python.util.lazy_loader import KerasLazyLoader as _KerasLazyLoader

File c:\Users\SUJITH\anaconda3\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py:85
83 sys.setdlopenflags(_default_dlopen_flags)
84 except ImportError:
---> 85 raise ImportError(
86 f'{traceback.format_exc()}'
87 f'\n\nFailed to load the native TensorFlow runtime.\n'
88 f'See https://www.tensorflow.org/install/errors '
89 f'for some common causes and solutions.\n'
90 f'If you need help, create an issue '
91 f'at https://github.com/tensorflow/tensorflow/issues '
92 f'and include the entire stack trace above this error message.')

ImportError: Traceback (most recent call last):
File "c:\Users\SUJITH\anaconda3\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, in
from tensorflow.python._pywrap_tensorflow_internal import *
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 causes and solutions.
If you need help, create an issue at https://github.com/tensorflow/tensorflow/issues and include the entire stack trace above this error message.

Standalone code to reproduce the issue

pip install tensorflow

Relevant log output

Metadata

Metadata

Assignees

Labels

TF 2.8staleThis label marks the issue/pr stale - to be closed automatically if no activitystat:awaiting responseStatus - Awaiting response from authortype:build/installBuild and install issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions