Issue
I'm trying to run the following code block in my jupyter locally:
import tensorflow as tf
import numpy as np
from tensorflow import keras
Unfortunately, this leads to the problem The kernel appears to have died. It will restart automatically.
I found a lot of questions with the same problem, but no one could help me to solve my issue.
I tried to reinstall all the packages and the anaconda-navigator but it didn't change anything.
Configuration:
Mac M1 with 32GB Ram.
UPDATE:
I tried to run the code from a .py
file and I got the following error zsh: illegal hardware instruction python fileName.py
.
Solution
Finally I could solve the problem, I hope it could help someone in the future.
So the first thing, the first shown in the first (in jupyter notebook) was unclear and it is just a standard saying that something went wrong, so as I mentioned in my update section, I tried to run the code from a .py
file to see the original problem.
So installing anaconda and tensorflow package and then running jupyter will work without any problem for windows maybe but not for MacOSX, so to install it for Mac M1 it could be challenging somehow, I followed this link and I could successfully install it and everything works fine now !
Answered By - Gothiquo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.