'Jupyter Kernel Dies Importing Keras
I am running an Apple Macbook with 16 GB of RAM and the M1 chip. I am trying to import Keras through the command:
from tensorflow.keras.models import Sequential
but all I am getting is the pop up that says
Kernel Restarting The kernel for 02_Modeling.ipynb appears to have died. It will restart automatically.
Not sure how to fix this, not sure I've run Tensorflow on this computer before so don't know if this is a new thing but I can't fix it. Unsure of how to proceed.
When I run a python shell in terminal and try to import tensorflow I get this output:
zsh: illegal hardware instruction python3
Thanks for the help.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|