I am getting error in jupyter notebook after installing tensorflow in the Anaconda command line

AttributeError Traceback (most recent call last)
in
----> 1 import tensorflow as tf
2 from keras.preprocessing.image import ImageDataGenerator

C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_init_.py in
36 import typing as _typing
37
—> 38 from tensorflow.python.tools import module_util as _module_util
39 from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader
40

C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python_init_.py in
43 from tensorflow.python import distribute
44 # from tensorflow.python import keras
—> 45 from tensorflow.python.feature_column import feature_column_lib as feature_column
46 # from tensorflow.python.layers import layers
47 from tensorflow.python.module import module

C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\feature_column\feature_column_lib.py in
16
17 # pylint: disable=unused-import,line-too-long,wildcard-import,g-bad-import-order
—> 18 from tensorflow.python.feature_column.feature_column import *
19 from tensorflow.python.feature_column.feature_column_v2 import *
20 from tensorflow.python.feature_column.sequence_feature_column import *

C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\feature_column\feature_column.py in
141 from tensorflow.python.framework import sparse_tensor as sparse_tensor_lib
142 from tensorflow.python.framework import tensor_shape
→ 143 from tensorflow.python.layers import base
144 from tensorflow.python.ops import array_ops
145 from tensorflow.python.ops import array_ops_stack

C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\layers\base.py in
14 # =============================================================================
15 “”“Contains the base Layer class, from which all layers inherit.”“”
—> 16 from tensorflow.python.keras.legacy_tf_layers import base
17
18 InputSpec = base.InputSpec

C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\keras_init_.py in
23
24 # See b/110718070#comment18 for more details about this import.
—> 25 from tensorflow.python.keras import models
26
27 from tensorflow.python.keras.engine.input_layer import Input

C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\keras\models.py in
20 from tensorflow.python.keras import metrics as metrics_module
21 from tensorflow.python.keras import optimizer_v1
—> 22 from tensorflow.python.keras.engine import functional
23 from tensorflow.python.keras.engine import sequential
24 from tensorflow.python.keras.engine import training

C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\keras\engine\functional.py in
30 from tensorflow.python.keras.engine import input_spec
31 from tensorflow.python.keras.engine import node as node_module
—> 32 from tensorflow.python.keras.engine import training as training_lib
33 from tensorflow.python.keras.engine import training_utils
34 from tensorflow.python.keras.saving.saved_model import network_serialization

C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\keras\engine\training.py in
51 from tensorflow.python.keras.mixed_precision import loss_scale_optimizer as lso
52 from tensorflow.python.keras.mixed_precision import policy
—> 53 from tensorflow.python.keras.saving import hdf5_format
54 from tensorflow.python.keras.saving import save
55 from tensorflow.python.keras.saving import saving_utils

C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\keras\saving\hdf5_format.py in
35 # pylint: disable=g-import-not-at-top
36 try:
—> 37 import h5py
38 HDF5_OBJECT_HEADER_LIMIT = 64512
39 except ImportError:

C:\ProgramData\Anaconda3\lib\site-packages\h5py_init_.py in
44 _errors.silence_errors()
45
—> 46 from ._conv import register_converters as _register_converters
47 _register_converters()
48

h5py\h5t.pxd in init h5py._conv()

h5py\h5t.pyx in init h5py.h5t()

C:\ProgramData\Anaconda3\lib\site-packages\numpy_init_.py in getattr(attr)
318 return Tester
319
→ 320 raise AttributeError("module {!r} has no attribute "
321 “{!r}”.format(name, attr))
322

AttributeError: module ‘numpy’ has no attribute ‘typeDict’

Hi @franklin_ezeadi

Welcome to the TensorFlow Forum!

TensorFlow has not installed in your system properly. What are all the steps you have followed to install the tensorflow in your system?

Could you please refer to this TF install official link to install TensorFlow as per your system OS and let us know if the issue still persists?

Thank you.