I'm getting an error when I import Keras into my Python environment:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 9
6 import seaborn as sns
7 import tensorflow as tf
----> 9 from tensorflow.keras import layers
10 from tensorflow.keras import models
11 from IPython import display
ModuleNotFoundError: No module named 'tensorflow.keras'
Here are things I have tried:
Tensorflow is up to date
keras is up to date
Jupyter Notebook is apparently getting an update which is what I think the issue is
Seaborn, Matplotlib, Numpy all work
What could be the issue here? I tried using from tensorflow import keras
and I got that error.
When I asked what version of tensorflow I have, it says this:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[2], line 1
----> 1 print(tf.__version__)
AttributeError: module 'tensorflow' has no attribute '__version__'