ModuleNotFoundError Traceback (most recent call last)
C:\Windows\Temp\ipykernel_22880\2911687784.py in
----> 1 import tensorflow.compat.v2 as tf
~\AppData\Roaming\Python\Python39\site-packages\tensorflow_init_.py in
35 import typing as _typing
36
—> 37 from tensorflow.python.tools import module_util as _module_util
38 from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader
39
~\AppData\Roaming\Python\Python39\site-packages\tensorflow\python_init_.py in
105 from tensorflow.python.platform import test
106
→ 107 from tensorflow.python.compat import v2_compat
108
109 from tensorflow.python.util.all_util import make_all
~\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\compat\v2_compat.py in
16
17 from tensorflow.python import tf2
—> 18 import tensorflow.compat.v1 as tf
19 from tensorflow.python.data.experimental.ops import counter
20 from tensorflow.python.data.experimental.ops import interleave_ops
ModuleNotFoundError: No module named ‘tensorflow.compat’