I tried importing the following code:
import tensorflow as tf
from tensorflow.python.ops.numpy_ops import np_config
I got the following error:
ImportError: cannot import name 'np_config' from 'tensorflow.python.ops.numpy_ops' (C:\Anaconda3\lib\site-packages\tensorflow\python\ops\numpy_ops\__init__.py)
I checked versions of tensorflow and keras:
import tensorflow
print(tf.__version__)
import keras
print(keras.__version__)
Output:
2.4.0
2.4.0
Edit: I followed this link but still not working.