python – Jupyter notebook dead kernal
It seems conda
has not installed properly in your system. Try again by uninstalling the anaconda and install it back from scratch.
Please check this link to install Anaconda.
After installing Anaconda in your system, Create virtual environment to install Tensorflow in it as below:
To install the current release of CPU-only TensorFlow,
conda create -n tf tensorflow
conda activate tf
Or, to install the current release of GPU TensorFlow
conda create -n tf-gpu tensorflow-gpu
conda activate tf-gpu
You can also create virtual environment in Anaconda Environment section. Open the Jupyter notebook by selecting the same virtual environment.
run below code:
conda install pip
pip install tensorflow
After doing all these setups, your code may run fine as I have already executed above code in Jupyter and its not showing any error.
Read more here: Source link