Error running Tensorflow

When I run the first lab in my local Anaconda environment, I got the error:
The kernel appears to have died. It will restart automatically. I had both Keras 2.11.0 and TensorFlow 2.11.0 installed. Any idea why?

Here is the screenshot:

Hello @William_Chau

Considering that the kernel dies in the training process, it can be that you don’t have enough local resources to perform the training (Usually, it’s a lack of RAM).

please make sure you have a balance memory or you can run it in the google colab ?

Thanks!
Abdelrahman

The kernel dies right after I import tensorflow, not during training.

@William_Chau . Ok may it also there is lack of ram to import library as ternsorflow isn’t a small library and may it also you didn’t install and activate tensorflow library right in your local pc … can you run it in google colab or kaggle and told me what happened ?

Thanks!
Abdelrahman