When Anconda installs multiple python environments, or as a result of uninstalling and installing Anaconda multiple times, it causes a kernel kernel startup failure issue with python, making jupyter notebook unavailable. The startup file cannot be found. There is also a direct copy and paste others have built a good environment over, in which the startup kernel environment is still the original path. As shown in the following figure kernel startup failure kernel error
Click on the reason and you can see that the system cannot find the path to the specified file
In this article, the startup kernel failed because: directly copy the environment on another computer, the results in the environment path or the original one, each computer file name and path can not be exactly the same, so jupyter notebook can not correctly find the environment, so the startup kernel failed. Online some of the recommendations to uninstall and reinstall Anaconda, this is more troublesome, it takes a long time and then reinstalled, and the problem is still the same, copied over the path of the environment of the problem is not fundamentally solved, or startup failure, so some of the questioner said reinstalled many times or startup failure how to do, I'm here to teach you don't need to re-install the kernel can drive the success of the method.
Solution:
1. In the corresponding python environment of the anaconda environment, enter the command linejupyter kernelspec list
Command to view jupyter installed kernel and location activation kernel boot failure environment
Input:jupyter kernelspec list
command to find the corresponding environment
Open the file to see if the path to the python file matches the python environment of the file where the installation directory is located. Here I can see that the kernel in my python environment is inconsistent, just reinstall it.
If it doesn't agree, just switch the python environment of the current directory file and type:python -m ipykernel install --user
Just reinstall the kernel.
Find the corresponding path, copy and paste the path over, delete the original wrong path first. Then open the file and you will see the correct path.
Restart the boot environment
Trusted, kernel booted successfully!!! Can run the program now.
to this article on the jupyter notebook kernel startup failure problems and solutions to this article, more related jupyter notebook kernel startup failure content please search for my previous articles or continue to browse the following related articles I hope that you will support me in the future more!