In the part of CONDA virtual environment in the remote access server in the local browser, create a virtual environment called Env, and input it in the virtual environment
python -m ipykernel install --user --name env --display-name "env"
Installed kernelspec learn in/home/Amax /. Local/share/jupyter/kernels/env will be reported later
Access the directory and edit the kernel.json file (you may need to run jupyter notebook once before this file appears, during which an error is reported/usr/bin/python3: no module named ipykernel)_ Here, Jupiter notebook looks for ipykunnel from/usr/bin/python3_ Launcher, because Jupiter is installed in the CONDA virtual environment, the ipykunnel cannot be found_ (error report)
{
"argv": [
"/usr/bin/python3", #replaced here with the virtual environment's python,/home/amax/anaconda3/envs/env/bin/python
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
"display_name": "Python 3",
"language": "python"
}
After modification, run jupyter notebook to start ipykernel successfully
Similar Posts:
- Error in importing tensorflow in Jupiter Notebook: no module named tensorflow solution
- [Solved] Jupiter notebook failed to start Error: DLL load failed
- Modify the default open file path of Jupiter notebook
- [Solved] Exception: Jupyter command `jupyter-notbook` not found.
- jupyter notebook error: No module named ‘tensorflow’
- Problem solving of jupyter notebook dead kernel
- Jupyter notebook new Python3 Error: Permission denied: Untitled.ipynb,Modify workspace
- [Solved] ImportError: cannot import name pywrap_tensorflow
- [Solved] Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
- How to Solve Anaconda Error (Three Errors to Solve)